<include file="../header" xmlns="http://www.w3.org/1999/html"/>
<style>

</style>
<!--<link rel="stylesheet" type="text/css" href="/Template/css/viewWorkorder.css">-->
<script type="text/javascript" src="/Template/js/vue.min.js"></script>
<script language="javascript" src="/Template/js/ImgPreview.js"></script>
<script language="javascript" src="/Template/js/LodopFuncs.js"></script>
<script src='http://localhost:8000/CLodopfuncs.js?name=LODOP'></script>
<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>
<body class="J_scroll_fixed" id="container">
<script type="text/javascript">
    $(function() {

        var app = new Vue({
            el: '#container',
            data: {
                keywordList: []
            },
            methods: {
                remove: function(index) {
                    app.keywordList.splice(index,1);
                }
            }
        })



        $("button.btn_submit").click(function() {

            if(confirm("确定已打印成功了吗？")){
//                $("form").submit();
            }else{
                return false;
            }
        })


    })

    function photo(id) {

    };
</script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.all.min.js"></script>
<div class="wrap jj">
    <div class="common-form">
        <form id="form1"  class="form-horizontal J_ajaxForm">
            <div>
                <span class="mr20">
                    单号：<input type="text" value="{$workorder.workorder_no}" readonly/>&nbsp;
                    批号：<input type="text" value="{$workorder.batch_no}" readonly/>
                    <br/><br/>
                    患者：<input type="text" value="{$patientInfo.patient_name}，{$patientInfo.sex}，{$patientInfo.age}岁 {$workorder.side}" readonly/>&nbsp;
                    业务员：<input style="width: 100px;" type="text" value="{$sales.admin_name}" readonly/>&nbsp;
                    处方人：<input style="width: 100px;" type="text" value="{$prescriber.admin_name}" readonly/>
                </span>
            </div>
            <br/>
            <div>
                <button type="button" class="btn btn-info" onclick="javascript:Worksheet_preview();">工单打印</button>
                <if condition="$workorder['workorder_type'] neq '3'">
                    <button type="button" class="btn btn-danger" onclick="javascript:Prescribe_preview();">处方打印</button>
                </if>
            </div>
            <br/>

            <if condition="$workorder['workorder_type'] neq '3'">
                <div>
                    <button type="button" class="btn btn-success" onclick="javascript:order0_preview();">批记录首页</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order1_preview();">患者信息</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order2_preview();">物理检查</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order3_preview();">处方</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order4_preview();">尺寸测量</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order5_preview();">取阴模</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order6_preview();">修阳模</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order7_preview();">热塑成型</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order8_preview();">打磨抛光组装对线</button>
                    <button type="button" class="btn btn-success" onclick="javascript:order9_preview();">适配穿戴入库</button>
                </div>
                <br/>
                <div>
                    <button type="button" class="btn btn-success" onclick="javascript:audit0_preview();">成品检验报告单</button>
                    <button type="button" class="btn btn-success" onclick="javascript:audit1_preview();">成品检验记录1</button>
                    <button type="button" class="btn btn-success" onclick="javascript:audit2_preview();">成品检验记录2</button>
                </div>
            </if>

            <br/>
            <!--if condition="$workorder['photo0'] neq ''">
                <span style="color: #45a1dd; font-weight: bold; font-size: 18px">右键保存图片：</span>
                <br/>
                <img src="{$workorder['photo0']}" name="photo0" style="width:400px;height:auto;" onclick="javascript:photo(0);"/>
            </if>
            <if condition="$workorder['photo1'] neq ''">
                <img src="{$workorder['photo1']}" name="photo1" style="width:400px;height:auto;" onclick="javascript:photo(1);"/>
            </if>
            <if condition="$workorder['photo2'] neq ''">
                <img src="{$workorder['photo2']}" name="photo2" style="width:400px;height:auto;" onclick="javascript:photo(2);"/>
            </if-->
            <!--div>
                <button type="button" class="btn btn-success" onclick="javascript:prn1_print();">工单打印</button>
                <if condition="$workorder['workorder_type'] neq '3'">
                    <button type="button" class="btn btn-success" onclick="javascript:prn2_print();">处方打印</button>
                </if>
            </div-->
        </form>

    </div>
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" >
            <input type="hidden" value="{$workorder.workorder_id}" name="id" />
            <fieldset>
                <div class="form-actions" style="padding-left: 30px">
                    <!--if condition="$workorder['status'] eq 1">
                        <button type="button" class="btn btn-primary btn_submit">打印完成</button>
                    </if-->
                    <a class="btn" href="__URL__">返回</a>
                    <br/>
                    <a href="javascript:CheckIsInstall()">查看本机是否安装了控件或云打印</a><br/>
                </div>
            </fieldset>
        </form>
    </div>
    <if condition="$workorder['photo0'] neq ''">
    <span style="color: #45a1dd; font-weight: bold; font-size: 18px;margin-left: 1rem">左键放大显示、右键保存图片：</span>
    </if>
    <br/><br/>
    <div>
        <if condition="$workorder['photo0'] neq ''">
            <div style="float:left;margin-left: 1rem" class="container-item">
                <img src="{$workorder['photo0']}" id="img1" style="width:400px;height:auto;">
            </div>
        </if>
        <if condition="$workorder['photo1'] neq ''">
            <div style="float:left;margin-left: 1rem" class="container-item">
                <img src="{$workorder['photo1']}" id="img2" style="width:400px;height:auto;">
            </div>
        </if>
        <if condition="$workorder['photo2'] neq ''">
            <div style="float:left;margin-left: 1rem" class="container-item">
                <img src="{$workorder['photo2']}" id="img3" style="width:400px;height:auto;">
            </div>
        </if>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
<script language="javascript" type="text/javascript">
    var LODOP;
    function CheckIsInstall() {
        try{
            LODOP=getLodop();
            if (LODOP.VERSION) {
                if (LODOP.CVERSION)
                    alert("当前有C-Lodop云打印可用!\n C-Lodop版本:"+LODOP.CVERSION+"(内含Lodop"+LODOP.VERSION+")");
                else
                    alert("本机已成功安装了Lodop控件！\n 版本号:"+LODOP.VERSION);

            };
        }catch(err){
        }
    };


//    function prn1_print() {
//        if('{$workorder.workorder_type}' == '1'){
//            if('{$workorder.version}' == '1') {
//                CreateOneFormPage1();
//            }
//            if('{$workorder.version}' == '2') {
//                CreateOneFormPage111();
//            }
//        }
//        if('{$workorder.workorder_type}' == '2'){
//            CreateOneFormPage3();
//        }
//        if('{$workorder.workorder_type}' == '3'){
//            CreateOneFormPage5();
//        }
//        LODOP.PRINT();
//    };

    function Worksheet_preview() {
        if('{$workorder.workorder_type}' == '1'){
            if('{$workorder.version}' == '1') {
                WorksheetAfoOld();
            }
            if('{$workorder.version}' == '2') {
                WorksheetAfo();
            }
        }
        if('{$workorder.workorder_type}' == '2'){
            WorksheetTlso();
        }
        if('{$workorder.workorder_type}' == '3'){
            WorksheetCp();
        }
        if('{$workorder.workorder_type}' == '4'){
            WorksheetSco();
        }
        if('{$workorder.workorder_type}' == '5' || '{$workorder.workorder_type}' == '6'){
            WorksheetKafo();
        }
        if('{$workorder.workorder_type}' == '7'){
            WorksheetFo();
        }
        if('{$workorder.workorder_type}' == '9'){
            WorksheetShank();
        }
        LODOP.PREVIEW();
    };

    function Prescribe_preview() {
        if('{$workorder.workorder_type}' == '1'){
            PrescribeAfo();
        }
        if('{$workorder.workorder_type}' == '2'){
            PrescribeTlso();
        }
        if('{$workorder.workorder_type}' == '4'){
            PrescribeSco();
        }
        if('{$workorder.workorder_type}' == '5' || '{$workorder.workorder_type}' == '6'){
            PrescribeKafo();
        }
        if('{$workorder.workorder_type}' == '7'){
            PrescribeFo();
        }
        if('{$workorder.workorder_type}' == '9'){
            PrescribeShank();
        }
        LODOP.PREVIEW();
    };

    function order0_preview() {
        Order0();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order1_preview() {
        Order1();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order2_preview() {
        if('{$workorder.workorder_type}' == '1') {
            Order2();
        }
        if('{$workorder.workorder_type}' == '2') {
            Order2Spn();
        }
        if('{$workorder.workorder_type}' == '4') {
            Order2Sco();
        }
        if('{$workorder.workorder_type}' == '5' || '{$workorder.workorder_type}' == '6') {
            Order2Kafo();
        }
        if('{$workorder.workorder_type}' == '7') {
            Order2Fo();
        }
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order3_preview() {
        if('{$workorder.workorder_type}' == '1') {
            Order3();
        }
        if('{$workorder.workorder_type}' == '2') {
            Order3Spn();
        }
        if('{$workorder.workorder_type}' == '4') {
            Order3Sco();
        }
        if('{$workorder.workorder_type}' == '5' || '{$workorder.workorder_type}' == '6') {
            Order3Kafo();
        }
        if('{$workorder.workorder_type}' == '7') {
            Order3Fo();
        }
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order4_preview() {
        if('{$workorder.workorder_type}' == '1') {
            Order4();
        }
        if('{$workorder.workorder_type}' == '2') {
            Order4Spn();
        }
        if('{$workorder.workorder_type}' == '4') {
            Order4Sco();
        }
        if('{$workorder.workorder_type}' == '5' || '{$workorder.workorder_type}' == '6') {
            Order4Kafo();
        }
        if('{$workorder.workorder_type}' == '7') {
            Order4Fo();
        }
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order5_preview() {
        Order5();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order6_preview() {
        Order6();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order7_preview() {
        Order7();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order8_preview() {
        Order8();
        setDefaultPara();
        LODOP.PREVIEW();
    };
    function order9_preview() {
        Order9();
        setDefaultPara();
        LODOP.PREVIEW();
    };

    function setDefaultPara() {
        if('{$workorder.workorder_type}' == '1') {
            LODOP.SET_PRINT_STYLEA("title_name","CONTENT",'踝足支具生产批记录');
            LODOP.SET_PRINT_STYLEA("process_no","CONTENT",'XWK-RF-07-008');
            LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '061206AFO');
        }
        if('{$workorder.workorder_type}' == '2' || '{$workorder.workorder_type}' == '4') {
            LODOP.SET_PRINT_STYLEA("title_name","CONTENT",'躯干支具生产批记录');
            LODOP.SET_PRINT_STYLEA("process_no","CONTENT",'XWK-RF-07-013');
            LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '060309TLSO');
        }
        if('{$workorder.workorder_type}' == '5') {
            if('{$workorder.customized_product_id}' == '4') {
                LODOP.SET_PRINT_STYLEA("title_name", "CONTENT", '膝踝足支具生产批记录');
                LODOP.SET_PRINT_STYLEA("process_no", "CONTENT", 'XWK-RF-07-012');
                LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '061212KAFO');
            }
            if('{$workorder.customized_product_id}' == '7') {
                LODOP.SET_PRINT_STYLEA("title_name", "CONTENT", '髋膝踝足支具生产批记录');
                LODOP.SET_PRINT_STYLEA("process_no", "CONTENT", 'XWK-RF-07-011');
                LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '061218HKAFO');
            }
        }
        if('{$workorder.workorder_type}' == '6') {
            LODOP.SET_PRINT_STYLEA("title_name","CONTENT",'膝支具生产批记录');
            LODOP.SET_PRINT_STYLEA("process_no","CONTENT",'XWK-RF-07-009');
            LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '061209KO');
        }
        if('{$workorder.workorder_type}' == '7') {
            LODOP.SET_PRINT_STYLEA("title_name","CONTENT",'足支具生产批记录');
            LODOP.SET_PRINT_STYLEA("process_no","CONTENT",'XWK-RF-07-003');
            LODOP.SET_PRINT_STYLEA("a2", "CONTENT", '061203FO');
        }
    };

    function audit0_preview() {
        Audit0();
        setDefaultPara();
        LODOP.PREVIEW();
    };

    function audit1_preview() {
        Audit1();
        setDefaultPara();
        LODOP.PREVIEW();
    };

    function audit2_preview() {
        Audit2();
        setDefaultPara();
        LODOP.PREVIEW();
    };

    function WorksheetAfoOld() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT","" + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT","" + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT","" + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT","" + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("mobility_"+ '{$examBasic.mobility}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("side_"+ '{$examBasic.side}',"CONTENT","√");

        var pronationArr = '{$examBasic.pronation}'.split(",");
        for(var i=0;i<4;i++){
            var name = "pronation_"+ pronationArr[i];
            if(pronationArr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }

        var supinationArr = '{$examBasic.supination}'.split(",");
        for(var i=0;i<4;i++){
            var name = "supination_"+ supinationArr[i];
            if(supinationArr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }

        LODOP.SET_PRINT_STYLEA("forefoot_"+ '{$examBasic.forefoot}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("heel_"+ '{$examBasic.heel}',"CONTENT","√");

        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT","" + '{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT","" + '{$examBasic.shoe_size}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT"," " + '{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT"," " + '{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT"," " + '{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT"," " + '{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT"," " + '{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT"," " + '{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT"," " + '{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT"," " + '{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT"," " + '{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT"," " + '{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT"," " + '{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT"," " + '{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT"," " + '{$examMeasure.shank_12}');

        LODOP.SET_PRINT_STYLEA("r1_"+ '{$examMeasure.r1}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("r2_"+ '{$examMeasure.r2}',"CONTENT","√");

        switch('{$examMeasure.r1_angle}') {
            case "90":
                LODOP.SET_PRINT_STYLEA("r1_angle_0","CONTENT","√");
                break;
            case "-5":
                LODOP.SET_PRINT_STYLEA("r1_angle_1","CONTENT","√");
                break;
            case "-10":
                LODOP.SET_PRINT_STYLEA("r1_angle_2","CONTENT","√");
                break;
            case "-15":
                LODOP.SET_PRINT_STYLEA("r1_angle_3","CONTENT","√");
                break;
            default:
                LODOP.SET_PRINT_STYLEA("r1_angle_4","CONTENT"," " + '{$examMeasure.r1_angle}');
        }
        LODOP.SET_PRINT_STYLEA("r2_angle","CONTENT"," " + '{$examMeasure.r2_angle}');

        if('{$examMeasure.heel_head}' == 0){
            LODOP.SET_PRINT_STYLEA("heel_head_0","CONTENT","√");
        }else if('{$examMeasure.heel_head}' < 0)
        {
            LODOP.SET_PRINT_STYLEA("heel_head_1","CONTENT"," " + Math.abs('{$examMeasure.heel_head}'));
        }else{
            LODOP.SET_PRINT_STYLEA("heel_head_2","CONTENT"," " + '{$examMeasure.heel_head}');
        }

        if('{$examMeasure.forefoot_head}' == 0){
            LODOP.SET_PRINT_STYLEA("forefoot_head_0","CONTENT","√");
        }else if('{$examMeasure.forefoot_head}' < 0)
        {
            LODOP.SET_PRINT_STYLEA("forefoot_head_1","CONTENT"," " + Math.abs('{$examMeasure.forefoot_head}'));
        }else{
            LODOP.SET_PRINT_STYLEA("forefoot_head_2","CONTENT"," " + '{$examMeasure.forefoot_head}');
        }

        LODOP.SET_PRINT_STYLEA("sva","CONTENT"," " + '{$examMeasure.sva}');

        LODOP.SET_PRINT_STYLEA("gait_"+ '{$examBasic.gait}',"CONTENT","√");

        LODOP.SET_PRINT_STYLEA("shankcontrol_a_"+ '{$examAnalysis.shankcontrol_a}',"CONTENT","√");
        if('{$examAnalysis.shankcontrol_a_inside}' == "1"){
            LODOP.SET_PRINT_STYLEA("shankcontrol_a_inside","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("shankcontrol_b_"+ '{$examAnalysis.shankcontrol_b}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("shankcontrol_c_"+ '{$examAnalysis.shankcontrol_c}',"CONTENT","√");

        if(typeof muscle == "undefined"){
            var muscle = {
                0: 'N',
                1: 'AH',
                2: 'H'
            }
        }
        LODOP.SET_PRINT_STYLEA("muscle_0","CONTENT"," " + muscle['{$examBasic.muscle_0}']);
        LODOP.SET_PRINT_STYLEA("muscle_1","CONTENT"," " + muscle['{$examBasic.muscle_1}']);
        LODOP.SET_PRINT_STYLEA("muscle_2","CONTENT"," " + muscle['{$examBasic.muscle_2}']);
        LODOP.SET_PRINT_STYLEA("muscle_3","CONTENT"," " + muscle['{$examBasic.muscle_3}']);
        LODOP.SET_PRINT_STYLEA("muscle_4","CONTENT"," " + muscle['{$examBasic.muscle_4}']);
        LODOP.SET_PRINT_STYLEA("muscle_5","CONTENT"," " + muscle['{$examBasic.muscle_5}']);
        LODOP.SET_PRINT_STYLEA("muscle_6","CONTENT"," " + muscle['{$examBasic.muscle_6}']);
        LODOP.SET_PRINT_STYLEA("muscle_7","CONTENT"," " + muscle['{$examBasic.muscle_7}']);
        LODOP.SET_PRINT_STYLEA("muscle_8","CONTENT"," " + muscle['{$examBasic.muscle_8}']);
        LODOP.SET_PRINT_STYLEA("muscle_9","CONTENT"," " + muscle['{$examBasic.muscle_9}']);
        if(typeof joint == "undefined"){
            var joint = {
                0: 'N',
                1: 'L',
                2: 'HL',
                3: 'E'
            }
        }
        LODOP.SET_PRINT_STYLEA("hip_0","CONTENT"," " + joint['{$examBasic.hip_0}']);
        LODOP.SET_PRINT_STYLEA("hip_1","CONTENT"," " + joint['{$examBasic.hip_1}']);
        LODOP.SET_PRINT_STYLEA("hip_2","CONTENT"," " + joint['{$examBasic.hip_2}']);
        LODOP.SET_PRINT_STYLEA("hip_3","CONTENT"," " + joint['{$examBasic.hip_3}']);
        LODOP.SET_PRINT_STYLEA("hip_4","CONTENT"," " + joint['{$examBasic.hip_4}']);
        LODOP.SET_PRINT_STYLEA("hip_5","CONTENT"," " + joint['{$examBasic.hip_5}']);
        LODOP.SET_PRINT_STYLEA("knee_0","CONTENT"," " + joint['{$examBasic.knee_0}']);
        LODOP.SET_PRINT_STYLEA("knee_1","CONTENT"," " + joint['{$examBasic.knee_1}']);
        LODOP.SET_PRINT_STYLEA("ankle_0","CONTENT"," " + joint['{$examBasic.ankle_0}']);
        LODOP.SET_PRINT_STYLEA("ankle_1","CONTENT"," " + joint['{$examBasic.ankle_1}']);
        LODOP.SET_PRINT_STYLEA("ankle_2","CONTENT"," " + joint['{$examBasic.ankle_2}']);
        LODOP.SET_PRINT_STYLEA("ankle_3","CONTENT"," " + joint['{$examBasic.ankle_3}']);
        LODOP.SET_PRINT_STYLEA("remark","CONTENT","                " + '{$examBasic.remark}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT","              " + '{$examBasic.dysfunction}');
        if(typeof weak == "undefined"){
            var weak = {
                1: '√',
                '': '  '
            }
        }
        LODOP.SET_PRINT_STYLEA("hipweak_0","CONTENT", weak['{$examBasic.hipweak_0}']);
        LODOP.SET_PRINT_STYLEA("hipweak_1","CONTENT", weak['{$examBasic.hipweak_1}']);
        LODOP.SET_PRINT_STYLEA("hipweak_2","CONTENT", weak['{$examBasic.hipweak_2}']);
        LODOP.SET_PRINT_STYLEA("hipweak_3","CONTENT", weak['{$examBasic.hipweak_3}']);
        LODOP.SET_PRINT_STYLEA("hipweak_4","CONTENT", weak['{$examBasic.hipweak_4}']);
        LODOP.SET_PRINT_STYLEA("hipweak_5","CONTENT", weak['{$examBasic.hipweak_5}']);
        LODOP.SET_PRINT_STYLEA("kneeweak_0","CONTENT", weak['{$examBasic.kneeweak_0}']);
        LODOP.SET_PRINT_STYLEA("kneeweak_1","CONTENT", weak['{$examBasic.kneeweak_1}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_0","CONTENT", weak['{$examBasic.ankleweak_0}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_1","CONTENT", weak['{$examBasic.ankleweak_1}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_2","CONTENT", weak['{$examBasic.ankleweak_2}']);
        LODOP.SET_PRINT_STYLEA("ankleweak_3","CONTENT", weak['{$examBasic.ankleweak_3}']);
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function WorksheetAfo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}cm');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}kg');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT",'{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",' {$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",' {$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        var doc = '';
        if('{$patientInfo.doctor}' != ''){
            doc = '医生:{$patientInfo.doctor},';
        }
        if('{$patientInfo.hospital}' != ''){
            doc += '(医院:{$patientInfo.hospital})';
        }
        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

//        var d = '{$workorder.create_time}';
//        alert(d.substring( 0, d.indexOf(' ')));
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("mobility","CONTENT",'{$examBasic.mobility}');
        LODOP.SET_PRINT_STYLEA("shankcontrol","CONTENT",'{$examBasic.shankcontrol}');
        LODOP.SET_PRINT_STYLEA("gait","CONTENT",'{$examBasic.gait}');
        if('{$examBasic.burden}' != ""){
            LODOP.SET_PRINT_STYLEA("castburden","CONTENT",'取型时{$examBasic.burden}');
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",'{$examBasic.footarch}');
        var toe = '{$examBasic.toe}';
        if('{$examBasic.notetoe}' != ""){
            toe += '，备注：{$examBasic.notetoe}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);
        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT",'{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT",'{$examBasic.shoe_type}({$examBasic.shoe_size}码)');
        var forefoot = '{$examBasic.forefoot}';
        if('{$examBasic.complforefoot}' != ""){
            forefoot += '，{$examBasic.complforefoot}';
        }
        if('{$examBasic.noteforefoot}' != ""){
            forefoot += '，备注：{$examBasic.noteforefoot}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.footarch}';
        if('{$examBasic.notefootarch}' != ""){
            footarch += '，备注：{$examBasic.notefootarch}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.complheel}';
        if('{$examBasic.heela}' != ""){
            complheel += ',负重位：{$examBasic.heela}({$examBasic.heelaangle})°';
        }
        if('{$examBasic.heelb}' != ""){
            complheel += ',非负重位：{$examBasic.heelb}({$examBasic.heelbangle})°';
        }
        if('{$examBasic.noteheel}' != ""){
            complheel += '，备注：{$examBasic.noteheel}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("discomfort","CONTENT",'                                   {$examBasic.discomfort}');
        LODOP.SET_PRINT_STYLEA("anklesymmetry","CONTENT",'             {$examBasic.anklesymmetry}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT",'                       {$examBasic.dysfunction}');
        if('{$examBasic.takephoto}' == "1"){
            LODOP.SET_PRINT_STYLEA("takephoto","CONTENT","√");
        }
        if('{$examBasic.takevideo}' == "1"){
            LODOP.SET_PRINT_STYLEA("takevideo","CONTENT","√");
        }

        LODOP.SET_PRINT_STYLEA("ms01","CONTENT",' {$examBasicCP.ms01}');
        LODOP.SET_PRINT_STYLEA("ms02","CONTENT",' {$examBasicCP.ms02}');
        LODOP.SET_PRINT_STYLEA("ms03","CONTENT",' {$examBasicCP.ms03}');
        LODOP.SET_PRINT_STYLEA("ms04","CONTENT",' {$examBasicCP.ms04}');
        LODOP.SET_PRINT_STYLEA("ms05","CONTENT",' {$examBasicCP.ms05}');
        LODOP.SET_PRINT_STYLEA("ms06","CONTENT",' {$examBasicCP.ms06}');
        LODOP.SET_PRINT_STYLEA("ms07","CONTENT",' {$examBasicCP.ms07}');
        LODOP.SET_PRINT_STYLEA("ms08","CONTENT",' {$examBasicCP.ms08}');
        LODOP.SET_PRINT_STYLEA("ms09","CONTENT",' {$examBasicCP.ms09}');
        LODOP.SET_PRINT_STYLEA("ms10","CONTENT",' {$examBasicCP.ms10}');
        LODOP.SET_PRINT_STYLEA("mt01","CONTENT",' {$examBasicCP.mt01}');
        LODOP.SET_PRINT_STYLEA("mt02","CONTENT",' {$examBasicCP.mt02}');
        LODOP.SET_PRINT_STYLEA("mt03","CONTENT",' {$examBasicCP.mt03}');
        LODOP.SET_PRINT_STYLEA("mt04","CONTENT",' {$examBasicCP.mt04}');
        LODOP.SET_PRINT_STYLEA("mt05","CONTENT",' {$examBasicCP.mt05}');
        LODOP.SET_PRINT_STYLEA("mt06","CONTENT",' {$examBasicCP.mt06}');
        LODOP.SET_PRINT_STYLEA("mt07","CONTENT",' {$examBasicCP.mt07}');
        LODOP.SET_PRINT_STYLEA("mt08","CONTENT",' {$examBasicCP.mt08}');
        LODOP.SET_PRINT_STYLEA("mt09","CONTENT",' {$examBasicCP.mt09}');
        LODOP.SET_PRINT_STYLEA("mt10","CONTENT",' {$examBasicCP.mt10}');
        LODOP.SET_PRINT_STYLEA("mt11","CONTENT",' {$examBasicCP.mt11}');
        LODOP.SET_PRINT_STYLEA("mt12","CONTENT",' {$examBasicCP.mt12}');
        LODOP.SET_PRINT_STYLEA("mt13","CONTENT",' {$examBasicCP.mt13}');
        LODOP.SET_PRINT_STYLEA("mt14","CONTENT",' {$examBasicCP.mt14}');
        LODOP.SET_PRINT_STYLEA("jr01","CONTENT",'{$examBasicCP.jr01}');
        LODOP.SET_PRINT_STYLEA("jr02","CONTENT",'{$examBasicCP.jr02}');
        LODOP.SET_PRINT_STYLEA("jr03","CONTENT",'{$examBasicCP.jr03}');
        LODOP.SET_PRINT_STYLEA("jr04","CONTENT",'{$examBasicCP.jr04}');
        LODOP.SET_PRINT_STYLEA("jr05","CONTENT",'{$examBasicCP.jr05}');
        LODOP.SET_PRINT_STYLEA("jr06","CONTENT",'{$examBasicCP.jr06}');
        LODOP.SET_PRINT_STYLEA("jr07","CONTENT",'{$examBasicCP.jr07}');
        LODOP.SET_PRINT_STYLEA("jr08","CONTENT",'{$examBasicCP.jr08}');
        LODOP.SET_PRINT_STYLEA("jr09","CONTENT",'{$examBasicCP.jr09}');
        LODOP.SET_PRINT_STYLEA("jr10","CONTENT",'{$examBasicCP.jr10}');
        LODOP.SET_PRINT_STYLEA("jr11","CONTENT",'{$examBasicCP.jr11}');
        LODOP.SET_PRINT_STYLEA("jr12","CONTENT",'{$examBasicCP.jr12}');
        LODOP.SET_PRINT_STYLEA("sk01","CONTENT",' {$examBasicCP.sk01}');
        LODOP.SET_PRINT_STYLEA("sk02","CONTENT",' {$examBasicCP.sk02}');
        LODOP.SET_PRINT_STYLEA("fp01","CONTENT",' {$examBasicCP.fp01}');
        LODOP.SET_PRINT_STYLEA("b01","CONTENT",'      {$examBasicCP.b01}');
        LODOP.SET_PRINT_STYLEA("b02","CONTENT",'      {$examBasicCP.b02}');
        LODOP.SET_PRINT_STYLEA("b03","CONTENT",'      {$examBasicCP.b03}');
        LODOP.SET_PRINT_STYLEA("b04","CONTENT",'      {$examBasicCP.b04}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'{$examMeasure.burden}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT",'{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT",'{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT",'{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT",'{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT",'{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT",'{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT",'{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT",'{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT",'{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT",'{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT",'{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT",'{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT",'{$examMeasure.shank_12}');
        LODOP.SET_PRINT_STYLEA("shank_13","CONTENT",'{$examMeasure.shank_13}');
        LODOP.SET_PRINT_STYLEA("shank_14","CONTENT",'{$examMeasure.shank_14}');
        LODOP.SET_PRINT_STYLEA("shank_15","CONTENT",'{$examMeasure.shank_15}');
//        LODOP.SET_PRINT_STYLEA("shank_16","CONTENT",'{$examMeasure.shank_16}');
//        LODOP.SET_PRINT_STYLEA("shank_17","CONTENT",' {$examMeasure.shank_17}°');
//        LODOP.SET_PRINT_STYLEA("shank_18","CONTENT",' {$examMeasure.shank_18}°');
//        LODOP.SET_PRINT_STYLEA("shank_19","CONTENT",' {$examMeasure.shank_19}°');
//        LODOP.SET_PRINT_STYLEA("shank_20","CONTENT",' {$examMeasure.shank_20}°');
//        if('{$examMeasure.head}' == "1"){
//            LODOP.SET_PRINT_STYLEA("head","CONTENT","√");
//        }
        LODOP.SET_PRINT_STYLEA("deposit","CONTENT"," " + '{$workorder.deposit}');
        LODOP.SET_PRINT_STYLEA("type_name","CONTENT"," " + '{$workorder.type_name}');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function PrescribeAfo() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'({$workorder.side})');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT"," " + '{$rx.other_type}[{$rx.other_price}]');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_"+ '{$examAnalysis.ankle_type}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_other","CONTENT"," " + '{$examAnalysis.ankle_type_other}');
//        LODOP.SET_PRINT_STYLEA("ankle_size_"+ '{$examAnalysis.ankle_size}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_activity_"+ '{$examAnalysis.ankle_activity}',"CONTENT","√");
//        if('{$examAnalysis.ankle_activity}' == "0"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option1_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//        }
//        if('{$examAnalysis.ankle_activity}' == "1"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option2_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//            if('{$examAnalysis.ankle_activity_option}' == "2"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other1","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//            if('{$examAnalysis.ankle_activity_option}' == "3"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other2","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//        }

        if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("combo", "CONTENT", "√");
        }
        LODOP.SET_PRINT_STYLEA("afotype_in","CONTENT", '内靴类型：{$afotype_in}');


        LODOP.SET_PRINT_STYLEA("afotype_out","CONTENT", '外靴类型：{$afotype_out}');

        var dorsal_supArr = "";
        if('{$rx.activity_limit}' != ""){
            dorsal_supArr += '活动限制:{$rx.activity_limit}。';
        }
        if('{$rx.limit_level}' != ""){
            if('{$rx.limit_level_angle}' != ""){
                dorsal_supArr += '限制程度:{$rx.limit_level}--{$rx.limit_level_angle}度。';
            }else{
                dorsal_supArr += '限制程度:{$rx.limit_level}。';
            }
        }
        if('{$rx.limit_level_other}' != ""){
            dorsal_supArr += '其它:{$rx.limit_level_other}';
        }
        LODOP.SET_PRINT_STYLEA("dorsal_sup","CONTENT", dorsal_supArr);

        if('{$rx.flex_other}' != ""){
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}。其他:{$rx.flex_other}');
        }else{
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}');
        }


        LODOP.SET_PRINT_STYLEA("afotype_out_note","CONTENT", '{$rx.afotype_out_note}');
    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("afotype_in_note", "CONTENT", '{$rx.afotype_in_note}');
   //     }
        LODOP.SET_PRINT_STYLEA("afotype_other_note","CONTENT", '{$rx.afotype_other_note}');
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("ahsize","CONTENT", '{$rx.ahsize}');
        LODOP.SET_PRINT_STYLEA("activity_limit","CONTENT", '{$rx.activity_limit}');
        LODOP.SET_PRINT_STYLEA("limit_level","CONTENT", '{$rx.limit_level}');
        if('{$rx.limit_level_angle}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_angle", "CONTENT", '(角度:{$rx.limit_level_angle}°)');
        }
        if('{$rx.limit_level_other}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_other", "CONTENT", '其它铰链及限制说明:{$rx.limit_level_other}');
        }
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("sag","CONTENT", 'AA：{$rx.sag_aa}°，SVA：{$rx.sag_sva}°');
        var heelArr = "";
        if('{$rx.heel}' != ""){
            heelArr += '跟骨：{$rx.heel}';
        }
        if('{$rx.heel_angle}' != ""){
            heelArr += '--{$rx.heel_angle}°。';
        }else{
            heelArr += '。';
        }
        if('{$rx.forefoot}' != ""){
            heelArr += '前足：{$rx.forefoot}';
        }
        LODOP.SET_PRINT_STYLEA("heel","CONTENT", heelArr);

//        if('{$rx.shankab}' == ""){
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'A小腿前倾不足：{$rx.shanka}，{$rx.in_shanka}');
//        }else{
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'B小腿过度前倾：{$rx.shankb}');
//        }

        LODOP.SET_PRINT_STYLEA("outproduct","CONTENT", '{$rx.outproduct}');
        var outArr = "";
        if('{$rx.out_pp}' != ""){
            outArr += "PP：" + '{$rx.out_pp}，';
        }
        if('{$rx.out_carbpp}' != ""){
            outArr += "碳纤PP：" + '{$rx.out_carbpp}，';
        }
        if('{$rx.out_copp}' != ""){
            outArr += "共聚PP：" + '{$rx.out_copp}，';
        }
        if('{$rx.out_pe}' != ""){
            outArr += "PE：" + '{$rx.out_pe}，';
        }
        if('{$rx.out_enhpe}' != ""){
            outArr += "改性PE：" + '{$rx.out_enhpe}，';
        }
        if('{$rx.out_dy}' != ""){
            outArr += "Dynamolene：" + '{$rx.out_dy}，';
        }
        LODOP.SET_PRINT_STYLEA("out_m","CONTENT", outArr);

    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("inproduct", "CONTENT", '{$rx.inproduct}');
            var inArr = "";
            if ('{$rx.in_dy}' != "") {
                inArr += "Dynamolene：" + '{$rx.in_dy}，';
            }
            if ('{$rx.in_enhpe}' != "") {
                inArr += "改性PE：" + '{$rx.in_enhpe}，';
            }
            if ('{$rx.in_copp}' != "") {
                inArr += "共聚PP：" + '{$rx.in_copp}，';
            }
            if ('{$rx.in_pp}' != "") {
                inArr += "PP：" + '{$rx.in_pp}，';
            }
            if ('{$rx.in_eva}' != "") {
                inArr += "EVA：" + '{$rx.in_eva}，';
            }
            LODOP.SET_PRINT_STYLEA("in_m", "CONTENT", inArr);

            LODOP.SET_PRINT_STYLEA("innerproduct", "CONTENT", '{$rx.innerproduct}');
            var innerArr = "";
            if ('{$rx.inner_al}' != "") {
                innerArr += "Aliplast：" + '{$rx.inner_al}，';
            }
            if ('{$rx.inner_eva}' != "") {
                innerArr += "EVA：" + '{$rx.inner_eva}，';
            }
            if ('{$rx.inner_other}' != "") {
                innerArr += "其他内衬：" + '{$rx.inner_other}';
            }
            LODOP.SET_PRINT_STYLEA("inner_m", "CONTENT", innerArr);
     //   }

        var mould_outArr = "";
        if('{$mould_out}' != ""){
            mould_outArr += '{$mould_out},';
        }
        if('{$rx.mould_out_a}' != ""){
            mould_outArr += '跟骨内侧楔形:{$rx.mould_out_a}°,';
        }
        if('{$rx.mould_out_b}' != ""){
            mould_outArr += '跟骨外侧楔形:{$rx.mould_out_b}°,';
        }
        if('{$rx.mould_out_c}' != ""){
            mould_outArr += '中足内侧楔形:{$rx.mould_out_c}°,';
        }
        if('{$rx.mould_out_d}' != ""){
            mould_outArr += '中足外侧楔形:{$rx.mould_out_d}°,';
        }
        if('{$rx.mould_out_e}' != ""){
            mould_outArr += '前脚掌加长:{$rx.mould_out_e},';
        }
        if('{$rx.mould_out_f}' != ""){
            mould_outArr += '跖趾关节前翘:{$rx.mould_out_f}°,';
        }
        if('{$rx.mould_out_g}' != ""){
            mould_outArr += '趾间关节前翘:{$rx.mould_out_g}°,';
        }
        if('{$rx.mould_out_h}' != ""){
            mould_outArr += '第{$rx.mould_out_h}跖趾关节下免荷,';
        }
        if('{$rx.mould_out_i}' != ""){
            mould_outArr += '其它：{$rx.mould_out_i}';
        }
        LODOP.SET_PRINT_STYLEA("mould_out","CONTENT", mould_outArr);

//        if('{$rx.combo}' == "是") {
//            var mould_inArr = "";
//            if ('{$mould_in}' != "") {
//                mould_inArr += '{$mould_in},';
//            }
//            if ('{$rx.mould_in_a}' != "") {
//                mould_inArr += '前脚掌加长:{$rx.mould_in_a},';
//            }
//            if ('{$rx.mould_in_b}' != "") {
//                mould_inArr += '跖趾关节前翘:{$rx.mould_in_b}°,';
//            }
//            if ('{$rx.mould_in_c}' != "") {
//                mould_inArr += '趾间关节前翘:{$rx.mould_in_c}°,';
//            }
//            if ('{$rx.mould_in_d}' != "") {
//                mould_inArr += '第{$rx.mould_in_d}跖趾关节下免荷,';
//            }
//            if ('{$rx.mould_in_e}' != "") {
//                mould_inArr += '其它:{$rx.mould_in_e}';
//            }
//            LODOP.SET_PRINT_STYLEA("mould_in", "CONTENT", mould_inArr);
//        }

        var wedge_outArr = "";
        if('{$rx.wedge_out_pos}' != ""){
            wedge_outArr += '位于：{$rx.wedge_out_pos},';
        }
        if('{$rx.wedge_out_b}' != ""){
            wedge_outArr += '前足：{$rx.wedge_out_b}--{$rx.wedge_out_a}°,';
        }
        if('{$rx.wedge_out_d}' != ""){
            wedge_outArr += '中足：{$rx.wedge_out_d}--{$rx.wedge_out_c}° ';
        }
        if('{$rx.wedge_out_f}' != ""){
            wedge_outArr += '后足：{$rx.wedge_out_f}--{$rx.wedge_out_e}°,';
        }
        if('{$rx.wedge_out_g}' != ""){
            wedge_outArr += '其它：{$rx.wedge_out_g}';
        }
        LODOP.SET_PRINT_STYLEA("wedge_out","CONTENT", wedge_outArr);

     //   if('{$rx.combo}' == "是") {
            var wedge_inArr = "";
            if('{$rx.wedge_in_pos}' != ""){
                wedge_inArr += '位于：{$rx.wedge_in_pos},';
            }
            if('{$rx.wedge_in_b}' != ""){
                wedge_inArr += '前足：{$rx.wedge_in_b}--{$rx.wedge_in_a}°,';
            }
            if('{$rx.wedge_in_d}' != ""){
                wedge_inArr += '中足：{$rx.wedge_in_d}--{$rx.wedge_in_c}° ';
            }
            if('{$rx.wedge_in_f}' != ""){
                wedge_inArr += '后足：{$rx.wedge_in_f}--{$rx.wedge_in_e}°,';
            }
            if('{$rx.wedge_in_g}' != ""){
                wedge_inArr += '其它：{$rx.wedge_in_g}';
            }
            LODOP.SET_PRINT_STYLEA("wedge_in","CONTENT", wedge_inArr);
     //   }

        var soleArr = "";
        if('{$rx.sole_a}' != ""){
            soleArr += '足跟：{$rx.sole_a},  ';
        }
        if('{$rx.sole_b}' != ""){
            soleArr += '前足：{$rx.sole_b},  ';
        }
        if('{$rx.sole_b_angle}' != ""){
            soleArr += '描述：{$rx.sole_b_angle},  ';
        }
        if('{$rx.sole_c}' != ""){
            soleArr += '有效跟高：{$rx.sole_c},  ';
        }
        if('{$rx.sole_d}' != ""){
            soleArr += '其它要求：{$rx.sole_d}';
        }
        LODOP.SET_PRINT_STYLEA("sole","CONTENT", soleArr);

        var hasp_out_aArr = "";
        if('{$rx.hasp_out_len_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_len_a}，';
        }
        if('{$rx.hasp_out_type_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_type_a}，';
        }
        if('{$rx.hasp_out_tight_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_tight_a}，';
        }
        if('{$rx.hasp_out_start_a}' != ""){
            hasp_out_aArr += '起点:{$rx.hasp_out_start_a}、{$rx.hasp_out_side_a},';
        }
        if('{$rx.hasp_out_start_a1}' != ""){
            hasp_out_aArr += '止点:{$rx.hasp_out_start_a1}、{$rx.hasp_out_side_a1},';
        }
        if('{$rx.hasp_out_other_a}' != ""){
            hasp_out_aArr += '其它：{$rx.hasp_out_other_a}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_a","CONTENT", hasp_out_aArr);

        var hasp_out_bArr = "";
        if('{$rx.hasp_out_len_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_len_b}，';
        }
        if('{$rx.hasp_out_type_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_type_b}，';
        }
        if('{$rx.hasp_out_tight_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_tight_b}，';
        }
        if('{$rx.hasp_out_start_b}' != ""){
            hasp_out_bArr += '起点:{$rx.hasp_out_start_b}、{$rx.hasp_out_side_b},';
        }
        if('{$rx.hasp_out_start_b1}' != ""){
            hasp_out_bArr += '止点:{$rx.hasp_out_start_b1}、{$rx.hasp_out_side_b1},';
        }
        if('{$rx.hasp_out_other_b}' != ""){
            hasp_out_bArr += '其它：{$rx.hasp_out_other_b}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_b","CONTENT", hasp_out_bArr);

        var hasp_out_cArr = "";
        if('{$rx.hasp_out_len_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_len_c}，';
        }
        if('{$rx.hasp_out_type_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_type_c}，';
        }
        if('{$rx.hasp_out_tight_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_tight_c}，';
        }
        if('{$rx.hasp_out_start_c}' != ""){
            hasp_out_cArr += '起点:{$rx.hasp_out_start_c}、{$rx.hasp_out_side_c},';
        }
        if('{$rx.hasp_out_start_c1}' != ""){
            hasp_out_cArr += '止点:{$rx.hasp_out_start_c1}、{$rx.hasp_out_side_c1},';
        }
        if('{$rx.hasp_out_other_c}' != ""){
            hasp_out_cArr += '其它：{$rx.hasp_out_other_c}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_c","CONTENT", hasp_out_cArr);

        var hasp_out_dArr = "";
        if('{$rx.hasp_out_len_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_len_d}，';
        }
        if('{$rx.hasp_out_type_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_type_d}，';
        }
        if('{$rx.hasp_out_tight_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_tight_d}，';
        }
        if('{$rx.hasp_out_start_d}' != ""){
            hasp_out_dArr += '起点:{$rx.hasp_out_start_d}、{$rx.hasp_out_side_d},';
        }
        if('{$rx.hasp_out_start_d1}' != ""){
            hasp_out_dArr += '止点:{$rx.hasp_out_start_d1}、{$rx.hasp_out_side_d1},';
        }
        if('{$rx.hasp_out_other_d}' != ""){
            hasp_out_dArr += '其它：{$rx.hasp_out_other_d}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_d","CONTENT", hasp_out_dArr);

      //  if('{$rx.combo}' == "是") {
            var hasp_in_aArr = "";
            if('{$rx.hasp_in_len_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_len_a}，';
            }
            if('{$rx.hasp_in_type_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_type_a}，';
            }
            if('{$rx.hasp_in_tight_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_tight_a}，';
            }
            if('{$rx.hasp_in_start_a}' != ""){
                hasp_in_aArr += '起点:{$rx.hasp_in_start_a}、{$rx.hasp_in_side_a},';
            }
            if('{$rx.hasp_in_start_a1}' != ""){
                hasp_in_aArr += '止点:{$rx.hasp_in_start_a1}、{$rx.hasp_in_side_a1},';
            }
            if('{$rx.hasp_in_other_a}' != ""){
                hasp_in_aArr += '其它：{$rx.hasp_in_other_a}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_a","CONTENT", hasp_in_aArr);

            var hasp_in_bArr = "";
            if('{$rx.hasp_in_len_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_len_b}，';
            }
            if('{$rx.hasp_in_type_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_type_b}，';
            }
            if('{$rx.hasp_in_tight_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_tight_b}，';
            }
            if('{$rx.hasp_in_start_b}' != ""){
                hasp_in_bArr += '起点:{$rx.hasp_in_start_b}、{$rx.hasp_in_side_b},';
            }
            if('{$rx.hasp_in_start_b1}' != ""){
                hasp_in_bArr += '止点:{$rx.hasp_in_start_b1}、{$rx.hasp_in_side_b1},';
            }
            if('{$rx.hasp_in_other_b}' != ""){
                hasp_in_bArr += '其它：{$rx.hasp_in_other_b}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_b","CONTENT", hasp_in_bArr);

            var hasp_in_cArr = "";
            if('{$rx.hasp_in_len_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_len_c}，';
            }
            if('{$rx.hasp_in_type_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_type_c}，';
            }
            if('{$rx.hasp_in_tight_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_tight_c}，';
            }
            if('{$rx.hasp_in_start_c}' != ""){
                hasp_in_cArr += '起点:{$rx.hasp_in_start_c}、{$rx.hasp_in_side_c},';
            }
            if('{$rx.hasp_in_start_c1}' != ""){
                hasp_in_cArr += '止点:{$rx.hasp_in_start_c1}、{$rx.hasp_in_side_c1},';
            }
            if('{$rx.hasp_in_other_c}' != ""){
                hasp_in_cArr += '其它：{$rx.hasp_in_other_c}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_c","CONTENT", hasp_in_cArr);
  //      }

        var cutline_outArr = "";
        if('{$cutline_out}' != ""){
            cutline_outArr += '{$cutline_out}，';
        }
        if('{$rx.cutline_out_other}' != ""){
            cutline_outArr += '其它：{$rx.cutline_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("cutline_out","CONTENT", cutline_outArr);

     //   if('{$rx.combo}' == "是") {
            var cutline_inArr = "";
            if('{$cutline_in}' != ""){
                cutline_inArr += '{$cutline_in}，';
            }
            if('{$rx.cutline_in_other}' != ""){
                cutline_inArr += '其它：{$rx.cutline_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("cutline_in","CONTENT", cutline_inArr);
   //     }

        var pelma_outArr = "";
        if('{$pelma_out}' != ""){
            pelma_outArr += '{$pelma_out}，';
        }
        if('{$rx.pelma_out_other}' != ""){
            pelma_outArr += '其它：{$rx.pelma_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("pelma_out","CONTENT", pelma_outArr);

     //   if('{$rx.combo}' == "是") {
            var pelma_inArr = "";
            if('{$pelma_in}' != ""){
                pelma_inArr += '{$pelma_in}，';
            }
            if('{$rx.pelma_in_other}' != ""){
                pelma_inArr += '其它：{$rx.pelma_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("pelma_in","CONTENT", pelma_inArr);
     //   }

        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    //
    function WorksheetTlso() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT"," " + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT"," " + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT"," " + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT"," " + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
//        if('{$workorder.delivery_date}' == ''){
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT"," ");
//        }else{
//            LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
//        }
        LODOP.SET_PRINT_STYLEA("reason","CONTENT",'{$patientInfo.reason}');
        LODOP.SET_PRINT_STYLEA("compl","CONTENT",'{$patientInfo.compl}');
        LODOP.SET_PRINT_STYLEA("allergy","CONTENT",'{$patientInfo.allergy}');
        LODOP.SET_PRINT_STYLEA("old_orth","CONTENT",'{$patientInfo.old_orth}');
        LODOP.SET_PRINT_STYLEA("orth_part","CONTENT",'{$patientInfo.orth_part}');
        LODOP.SET_PRINT_STYLEA("history","CONTENT",'{$patientInfo.history}');

        LODOP.SET_PRINT_STYLEA("mobility_"+ '{$examBasic.mobility}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_"+ '{$examBasic.stand}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_describe","CONTENT",'{$examBasic.stand_describe}');
        LODOP.SET_PRINT_STYLEA("sit_"+ '{$examBasic.sit}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("sit_describe","CONTENT",'{$examBasic.sit_describe}');
        LODOP.SET_PRINT_STYLEA("endurance_"+ '{$examBasic.endurance}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("endurance_time","CONTENT"," " + '{$examBasic.endurance_time}');
        if('{$examBasic.structure}' == '0'){
            LODOP.SET_PRINT_STYLEA("structure","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.broken}' == '1'){
            LODOP.SET_PRINT_STYLEA("broken","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("broken_part","CONTENT"," " + '{$examBasic.broken_part}');
        LODOP.SET_PRINT_STYLEA("boneQuality_"+ '{$examBasic.boneQuality}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("spine_gap","CONTENT",'{$examBasic.spine_gap}');
        if('{$examBasic.feeling}' == '0'){
            LODOP.SET_PRINT_STYLEA("feeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.nofeeling}' == '1'){
            LODOP.SET_PRINT_STYLEA("nofeeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("nofeeling_part","CONTENT",'{$examBasic.nofeeling_part}');
        if('{$examBasic.pain}' == '1'){
            LODOP.SET_PRINT_STYLEA("pain","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("pain_part","CONTENT",'{$examBasic.pain_part}');


        LODOP.SET_PRINT_STYLEA("spine0","CONTENT",'{$examMeasure.spine0}');
        LODOP.SET_PRINT_STYLEA("spine1","CONTENT",'{$examMeasure.spine1}');
        LODOP.SET_PRINT_STYLEA("spine2","CONTENT",'{$examMeasure.spine2}');
        LODOP.SET_PRINT_STYLEA("spine3","CONTENT",'{$examMeasure.spine3}');
        LODOP.SET_PRINT_STYLEA("spine4","CONTENT",'{$examMeasure.spine4}');
        LODOP.SET_PRINT_STYLEA("spine5","CONTENT",'{$examMeasure.spine5}');
        LODOP.SET_PRINT_STYLEA("spine6","CONTENT",'{$examMeasure.spine6}');
        LODOP.SET_PRINT_STYLEA("spine7","CONTENT",'{$examMeasure.spine7}');
        LODOP.SET_PRINT_STYLEA("spine8","CONTENT",'{$examMeasure.spine8}');
        LODOP.SET_PRINT_STYLEA("spine9","CONTENT",'{$examMeasure.spine9}');
        LODOP.SET_PRINT_STYLEA("spine10","CONTENT",'{$examMeasure.spine10}');
        LODOP.SET_PRINT_STYLEA("spine11","CONTENT",'{$examMeasure.spine11}');
        LODOP.SET_PRINT_STYLEA("spine12","CONTENT",'{$examMeasure.spine12}');
        LODOP.SET_PRINT_STYLEA("spine13","CONTENT",'{$examMeasure.spine13}');
        LODOP.SET_PRINT_STYLEA("spine14","CONTENT",'{$examMeasure.spine14}');
        LODOP.SET_PRINT_STYLEA("spine15","CONTENT",'{$examMeasure.spine15}');
        LODOP.SET_PRINT_STYLEA("spine16","CONTENT",'{$examMeasure.spine16}');
        LODOP.SET_PRINT_STYLEA("spine17","CONTENT",'{$examMeasure.spine17}');
        LODOP.SET_PRINT_STYLEA("spine18","CONTENT",'{$examMeasure.spine18}');
        LODOP.SET_PRINT_STYLEA("spine19","CONTENT",'{$examMeasure.spine19}');
        LODOP.SET_PRINT_STYLEA("spine20","CONTENT",'{$examMeasure.spine20}');
        var chest1Arr = '{$examMeasure.chest1}'.split(",");
        for(var i=0;i<chest1Arr.length;i++){
            var name = "chest1_"+ chest1Arr[i];
            if(chest1Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest2Arr = '{$examMeasure.chest2}'.split(",");
        for(var i=0;i<chest2Arr.length;i++){
            var name = "chest2_"+ chest2Arr[i];
            if(chest2Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest3Arr = '{$examMeasure.chest3}'.split(",");
        for(var i=0;i<chest3Arr.length;i++){
            var name = "chest3_"+ chest3Arr[i];
            if(chest3Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest4Arr = '{$examMeasure.chest4}'.split(",");
        for(var i=0;i<chest4Arr.length;i++){
            var name = "chest4_"+ chest4Arr[i];
            if(chest4Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        if('{$workorder.version}' == '1') {
            LODOP.SET_PRINT_STYLEA("abdomen","CONTENT"," " + '{$examMeasure.abdomen}');
            LODOP.SET_PRINT_STYLEA("oxter","CONTENT"," " + '{$examMeasure.oxter}');
            LODOP.SET_PRINT_STYLEA("xiphoid","CONTENT"," " + '{$examMeasure.xiphoid}');
            LODOP.SET_PRINT_STYLEA("iliopsoas","CONTENT"," " + '{$examMeasure.iliopsoas}');
            LODOP.SET_PRINT_STYLEA("anterior","CONTENT"," " + '{$examMeasure.anterior}');
            LODOP.SET_PRINT_STYLEA("trochanter","CONTENT"," " + '{$examMeasure.trochanter}');
            LODOP.SET_PRINT_STYLEA("vertex","CONTENT"," " + '{$examMeasure.vertex}');
            LODOP.SET_PRINT_STYLEA("sit_height","CONTENT"," " + '{$examMeasure.sit_height}');
            LODOP.SET_PRINT_STYLEA("stand_height","CONTENT"," " + '{$examMeasure.stand_height}');
            LODOP.SET_PRINT_STYLEA("cobb","CONTENT"," " + '{$examMeasure.cobb}');
            if('{$examMeasure.pelvic_}' == 0){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左高右低');
            }
            if('{$examMeasure.pelvic_}' == 1){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左低右高');
            }
            if('{$examMeasure.shoulder}' == 0){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左高右低');
            }
            if('{$examMeasure.shoulder}' == 1){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左低右高');
            }
            LODOP.SET_PRINT_STYLEA("rotate_"+ '{$examMeasure.rotate}',"CONTENT","√");
        }
        if('{$workorder.version}' == '2') {
            LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function PrescribeTlso() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("price","CONTENT", '{$rx.price}元');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT",'{$rx.other_type}[{$rx.other_price}元]');
//        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
//        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.employee_name}');

        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT", '{$rx.rt0}');
        LODOP.SET_PRINT_STYLEA("deformity","CONTENT", '{$rx.rt1}');

        var therapy_planArr = "";
        if('{$rx.rt2}' != ""){
            therapy_planArr += '{$rx.rt2}，';
        }
        if('{$rx.rt3}' != ""){
            therapy_planArr += '其它：{$rx.rt3}';
        }
        LODOP.SET_PRINT_STYLEA("therapy_plan","CONTENT", therapy_planArr);

        LODOP.SET_PRINT_STYLEA("spin_type","CONTENT", "{$rx.rt4}");

        var speical_inArr = "";
        if('{$rx.rt4}' != "CTLSO"){
            if('{$rx.rt5}' != ""){
                speical_inArr += '颈椎对线要求：{$rx.rt5}，';
            }
            if('{$rx.rt6}' != ""){
                speical_inArr += '{$rx.rt6}头箍，';
            }
            if('{$rx.rt7}' != ""){
                speical_inArr += '头箍材料：{$rx.rt7}，';
            }
        }
        if('{$rx.rt4}' != "TLSO"){
            if('{$rx.rt8}' != ""){
                speical_inArr += '类型：{$rx.rt8}，';
            }
            if('{$rx.rt9}' != ""){
                speical_inArr += '头箍材料：{$rx.rt9}，';
            }
        }
        LODOP.SET_PRINT_STYLEA("speical_in","CONTENT", speical_inArr);
        LODOP.SET_PRINT_STYLEA("sagittal_in","CONTENT", "{$rx.rt10}");
        LODOP.SET_PRINT_STYLEA("coronal_in","CONTENT", "{$rx.rt11}");
        LODOP.SET_PRINT_STYLEA("front_hei","CONTENT", "{$rx.rt12}");
        LODOP.SET_PRINT_STYLEA("bak_hei","CONTENT", "{$rx.rt13}");
        LODOP.SET_PRINT_STYLEA("left_hei","CONTENT", "{$rx.rt14}");
        LODOP.SET_PRINT_STYLEA("right_hei","CONTENT", "{$rx.rt15}");
        LODOP.SET_PRINT_STYLEA("front_bo","CONTENT", "{$rx.rt16}");
        LODOP.SET_PRINT_STYLEA("back_bo","CONTENT", "{$rx.rt17}");
        LODOP.SET_PRINT_STYLEA("left_bo","CONTENT", "{$rx.rt18}");
        LODOP.SET_PRINT_STYLEA("right_bo","CONTENT", "{$rx.rt19}");
        LODOP.SET_PRINT_STYLEA("pressure_in","CONTENT", "{$rx.rt20}");
        LODOP.SET_PRINT_STYLEA("free_in","CONTENT", "{$rx.rt21}");
        var mouldArr = "{$mould}。骨盆前凸调整：{$rx.rt23}";
        if('{$rx.rt24}' != ""){
            mouldArr += '（{$rx.rt24}°）';
        }
        LODOP.SET_PRINT_STYLEA("mould","CONTENT", mouldArr);

        LODOP.SET_PRINT_STYLEA("build_up","CONTENT", "{$rx.rt25}");
        LODOP.SET_PRINT_STYLEA("pressure_info","CONTENT", "{$rx.rt26}");
        LODOP.SET_PRINT_STYLEA("size_info","CONTENT", "{$rx.rt27}");
        LODOP.SET_PRINT_STYLEA("bounder_info","CONTENT", "{$rx.rt28}");
        var materialArr = "外壳：{$rx.rt29}（{$rx.rt30}），内衬：{$rx.rt31}，贴纸图案要求：{$rx.rt32}";
        if('{$rx.rt33}' != ""){
            materialArr += '，其他说明：{$rx.rt33}';
        }
        LODOP.SET_PRINT_STYLEA("material","CONTENT", materialArr);
        LODOP.SET_PRINT_STYLEA("jq_zt","CONTENT", "材料：{$rx.rt34}，可调高度：{$rx.rt35}，固定高度：{$rx.rt36}，固定位置：{$rx.rt37}，{$rx.rt38}枝条免压垫");
        LODOP.SET_PRINT_STYLEA("jh_zt","CONTENT", "材料：{$rx.rt39}，可调高度：{$rx.rt40}，固定高度：{$rx.rt41}，固定位置：{$rx.rt42}，{$rx.rt43}枝条免压垫");
        var jt_infoArr = "材料：{$rx.rt44}，前后倾角{$rx.rt45}";
        if('{$rx.rt46}' != ""){
            jt_infoArr += '：{$rx.rt46}°，';
        }
        LODOP.SET_PRINT_STYLEA("jt_info","CONTENT", jt_infoArr + "{$rx.rt47}颈托免压垫");
        var pilo_infoArr = "材料：{$rx.rt48}，前后倾角{$rx.rt49}";
        if('{$rx.rt50}' != ""){
            pilo_infoArr += '：{$rx.rt50}°，';
        }
        LODOP.SET_PRINT_STYLEA("pilo_info","CONTENT", pilo_infoArr + "{$rx.rt51}颈托免压垫");
        var pilo_infoArr = "材料：{$rx.rt48}，前后倾角{$rx.rt49}";
        if('{$rx.rt50}' != ""){
            pilo_infoArr += '：{$rx.rt50}°，';
        }
        LODOP.SET_PRINT_STYLEA("pilo_info","CONTENT", pilo_infoArr + "{$rx.rt51}颈托免压垫");
        LODOP.SET_PRINT_STYLEA("chest_zt","CONTENT", "{$rx.rt52}，材料：{$rx.rt53}，热塑材料：{$rx.rt54} {$rx.rt55}（{$rx.rt56}），枝条类型：{$rx.rt57}，枝条宽度：{$rx.rt58}，{$rx.rt59}枝条免压垫");
        LODOP.SET_PRINT_STYLEA("back_zt","CONTENT", "{$rx.rt60}，材料：{$rx.rt61}，热塑材料：{$rx.rt62} {$rx.rt63}（{$rx.rt64}），枝条类型：{$rx.rt65}，枝条宽度：{$rx.rt66}，{$rx.rt67}枝条免压垫，背托宽度：{$rx.rt68}，背托位置：{$rx.rt69}，{$rx.rt70}背托免压垫");
        LODOP.SET_PRINT_STYLEA("spin_trimline","CONTENT", "开口处{$rx.rt71}压片，材料：{$rx.rt72}，厚度：{$rx.rt73}，深度：{$rx.rt74}");
        var pad_infoArr = "";
        if('{$rx.rt75}' != ""){
            pad_infoArr += '1：{$rx.rt75}。';
        }
        if('{$rx.rt76}' != ""){
            pad_infoArr += ' 2：{$rx.rt76}。';
        }
        if('{$rx.rt77}' != ""){
            pad_infoArr += ' 3：{$rx.rt77}。';
        }
        LODOP.SET_PRINT_STYLEA("pad_info","CONTENT", pad_infoArr);
        LODOP.SET_PRINT_STYLEA("nylon_info","CONTENT", "材质：{$rx.rt78}，宽度：{$rx.rt79}，位置：{$rx.rt80}，返回式环：{$rx.rt81}，固定说明：{$rx.rt82}");
        var shoulder_strapArr = "{$rx.rt83}肩带";
        if('{$rx.rt83}' == "有"){
            shoulder_strapArr += '，材质：{$rx.rt84}，宽度：{$rx.rt85}，返回式环：{$rx.rt86}，固定说明：{$rx.rt87}';
        }
        LODOP.SET_PRINT_STYLEA("shoulder_strap","CONTENT", shoulder_strapArr);
        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function PrescribeSco() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("price","CONTENT", '{$rx.price}元');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT",'{$rx.other_type}[{$rx.other_price}元]');
//        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
//        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.employee_name}');
        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$rx.note}');

        if('{$rx.rt0}' != "") {
            LODOP.SET_PRINT_STYLEA("img_trimline", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/trimline" + '{$rx.rt0}' + ".jpg'>");
            if('{$rx.rt1}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt1}' + "-design.jpg'>");
            }
            if('{$rx.rt2}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt2}' + "-design.jpg'>");
            }
            if('{$rx.rt3}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt3}' + "-design.jpg'>");
            }
            if('{$rx.rt4}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt4}' + "-design.jpg'>");
            }
        }

        LODOP.SET_PRINT_STYLEA("rt5","CONTENT", '{$rx.rt5}');
        LODOP.SET_PRINT_STYLEA("rt6","CONTENT", '{$rx.rt6}');
        LODOP.SET_PRINT_STYLEA("rt7","CONTENT", '{$rx.rt7}');
        LODOP.SET_PRINT_STYLEA("rt8","CONTENT", '{$rx.rt8}');
        LODOP.SET_PRINT_STYLEA("rt9","CONTENT", '{$rx.rt9}');
        LODOP.SET_PRINT_STYLEA("rt10","CONTENT", '{$rx.rt10}');
        LODOP.SET_PRINT_STYLEA("rt11","CONTENT", '{$rx.rt11}');
        LODOP.SET_PRINT_STYLEA("rt12","CONTENT", '{$rx.rt12}');
        LODOP.SET_PRINT_STYLEA("rt13","CONTENT", '{$rx.rt13}');
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT", '{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT", '{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT", '{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT", '{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT", '{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT", '{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT", '{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT", '{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("rt22","CONTENT", '{$rx.rt22}');
        LODOP.SET_PRINT_STYLEA("rt23","CONTENT", '{$rx.rt23}');
        LODOP.SET_PRINT_STYLEA("rt24","CONTENT", '{$rx.rt24}');
        LODOP.SET_PRINT_STYLEA("rt25","CONTENT", '{$rx.rt25}');
        LODOP.SET_PRINT_STYLEA("rt26_"+ '{$rx.rt26}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt27_"+ '{$rx.rt27}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt28","CONTENT", '{$rx.rt28}');
        LODOP.SET_PRINT_STYLEA("rt29_"+ '{$rx.rt29}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt30","CONTENT", '{$rx.rt30}');
        LODOP.SET_PRINT_STYLEA("rt31","CONTENT", '{$rx.rt31}');
        LODOP.SET_PRINT_STYLEA("rt32","CONTENT", '{$rx.rt32}');
        LODOP.SET_PRINT_STYLEA("rt33","CONTENT", '{$rx.rt33}');
        LODOP.SET_PRINT_STYLEA("rt34","CONTENT", '{$rx.rt34}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("design","CONTENT", "{$design}");

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function WorksheetCp() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT","" + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT","" + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT","" + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT","" + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        LODOP.SET_PRINT_STYLEA("creator","CONTENT"," " + '{$creator.admin_name}');
        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$examBasic.note}');
        LODOP.SET_PRINT_STYLEA("type","CONTENT"," " + '{$workorder.type_name}');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');

        LODOP.SET_PRINT_STYLEA("a1l","CONTENT",'{$examBasic.a1l}');
        LODOP.SET_PRINT_STYLEA("a1r","CONTENT",'{$examBasic.a1r}');
        LODOP.SET_PRINT_STYLEA("a2l","CONTENT",'{$examBasic.a2l}');
        LODOP.SET_PRINT_STYLEA("a2r","CONTENT",'{$examBasic.a2r}');
        LODOP.SET_PRINT_STYLEA("a3l","CONTENT",'{$examBasic.a3l}');
        LODOP.SET_PRINT_STYLEA("a3r","CONTENT",'{$examBasic.a3r}');
        LODOP.SET_PRINT_STYLEA("a4l","CONTENT",'{$examBasic.a4l}');
        LODOP.SET_PRINT_STYLEA("a4r","CONTENT",'{$examBasic.a4r}');
        LODOP.SET_PRINT_STYLEA("a5l","CONTENT",'{$examBasic.a5l}');
        LODOP.SET_PRINT_STYLEA("a5r","CONTENT",'{$examBasic.a5r}');
        LODOP.SET_PRINT_STYLEA("a6l","CONTENT",'{$examBasic.a6l}');
        LODOP.SET_PRINT_STYLEA("a6r","CONTENT",'{$examBasic.a6r}');
        LODOP.SET_PRINT_STYLEA("a7l","CONTENT",'{$examBasic.a7l}');
        LODOP.SET_PRINT_STYLEA("a7r","CONTENT",'{$examBasic.a7r}');
        LODOP.SET_PRINT_STYLEA("a8l","CONTENT",'{$examBasic.a8l}');
        LODOP.SET_PRINT_STYLEA("a8r","CONTENT",'{$examBasic.a8r}');
        LODOP.SET_PRINT_STYLEA("a9l","CONTENT",'{$examBasic.a9l}');
        LODOP.SET_PRINT_STYLEA("a9r","CONTENT",'{$examBasic.a9r}');
        LODOP.SET_PRINT_STYLEA("a10l","CONTENT",'{$examBasic.a10l}');
        LODOP.SET_PRINT_STYLEA("a10r","CONTENT",'{$examBasic.a10r}');
        LODOP.SET_PRINT_STYLEA("a11l","CONTENT",'{$examBasic.a11l}');
        LODOP.SET_PRINT_STYLEA("a11r","CONTENT",'{$examBasic.a11r}');
        LODOP.SET_PRINT_STYLEA("a12l","CONTENT",'{$examBasic.a12l}');
        LODOP.SET_PRINT_STYLEA("a12r","CONTENT",'{$examBasic.a12r}');
        LODOP.SET_PRINT_STYLEA("a13l","CONTENT",'{$examBasic.a13l}');
        LODOP.SET_PRINT_STYLEA("a13r","CONTENT",'{$examBasic.a13r}');
        LODOP.SET_PRINT_STYLEA("a14l","CONTENT",'{$examBasic.a14l}');
        LODOP.SET_PRINT_STYLEA("a14r","CONTENT",'{$examBasic.a14r}');
        LODOP.SET_PRINT_STYLEA("a15l","CONTENT",'{$examBasic.a15l}');
        LODOP.SET_PRINT_STYLEA("a15r","CONTENT",'{$examBasic.a15r}');
        LODOP.SET_PRINT_STYLEA("a16l","CONTENT",'{$examBasic.a16l}');
        LODOP.SET_PRINT_STYLEA("a16r","CONTENT",'{$examBasic.a16r}');
        LODOP.SET_PRINT_STYLEA("a17l","CONTENT",'{$examBasic.a17l}');
        LODOP.SET_PRINT_STYLEA("a17r","CONTENT",'{$examBasic.a17r}');
        LODOP.SET_PRINT_STYLEA("a18l","CONTENT",'{$examBasic.a18l}');
        LODOP.SET_PRINT_STYLEA("a18r","CONTENT",'{$examBasic.a18r}');
        LODOP.SET_PRINT_STYLEA("a19l","CONTENT",'{$examBasic.a19l}');
        LODOP.SET_PRINT_STYLEA("a19r","CONTENT",'{$examBasic.a19r}');
        LODOP.SET_PRINT_STYLEA("a20l","CONTENT",'{$examBasic.a20l}');
        LODOP.SET_PRINT_STYLEA("a20r","CONTENT",'{$examBasic.a20r}');
        LODOP.SET_PRINT_STYLEA("a21l","CONTENT",'{$examBasic.a21l}');
        LODOP.SET_PRINT_STYLEA("a21r","CONTENT",'{$examBasic.a21r}');
        LODOP.SET_PRINT_STYLEA("a22l","CONTENT",'{$examBasic.a22l}');
        LODOP.SET_PRINT_STYLEA("a22r","CONTENT",'{$examBasic.a22r}');
        LODOP.SET_PRINT_STYLEA("a23l","CONTENT",'{$examBasic.a23l}');
        LODOP.SET_PRINT_STYLEA("a23r","CONTENT",'{$examBasic.a23r}');
        LODOP.SET_PRINT_STYLEA("a24l","CONTENT",'{$examBasic.a24l}');
        LODOP.SET_PRINT_STYLEA("a24r","CONTENT",'{$examBasic.a24r}');
        LODOP.SET_PRINT_STYLEA("a25l","CONTENT",'{$examBasic.a25l}');
        LODOP.SET_PRINT_STYLEA("a25r","CONTENT",'{$examBasic.a25r}');
        LODOP.SET_PRINT_STYLEA("a26l","CONTENT",'{$examBasic.a26l}');
        LODOP.SET_PRINT_STYLEA("a26r","CONTENT",'{$examBasic.a26r}');
        LODOP.SET_PRINT_STYLEA("a27l","CONTENT",'{$examBasic.a27l}');
        LODOP.SET_PRINT_STYLEA("a27r","CONTENT",'{$examBasic.a27r}');
        LODOP.SET_PRINT_STYLEA("a28l","CONTENT",'{$examBasic.a28l}');
        LODOP.SET_PRINT_STYLEA("a28r","CONTENT",'{$examBasic.a28r}');
        LODOP.SET_PRINT_STYLEA("a29l","CONTENT",'{$examBasic.a29l}');
        LODOP.SET_PRINT_STYLEA("a29r","CONTENT",'{$examBasic.a29r}');
        LODOP.SET_PRINT_STYLEA("a30l","CONTENT",'{$examBasic.a30l}');
        LODOP.SET_PRINT_STYLEA("a30r","CONTENT",'{$examBasic.a3r}');
        LODOP.SET_PRINT_STYLEA("a31l","CONTENT",'{$examBasic.a31l}');
        LODOP.SET_PRINT_STYLEA("a31r","CONTENT",'{$examBasic.a31r}');
        LODOP.SET_PRINT_STYLEA("a32l","CONTENT",'{$examBasic.a32l}');
        LODOP.SET_PRINT_STYLEA("a32r","CONTENT",'{$examBasic.a32r}');
        LODOP.SET_PRINT_STYLEA("a33l","CONTENT",'{$examBasic.a33l}');
        LODOP.SET_PRINT_STYLEA("a33r","CONTENT",'{$examBasic.a33r}');
        LODOP.SET_PRINT_STYLEA("a34l","CONTENT",'{$examBasic.a34l}');
        LODOP.SET_PRINT_STYLEA("a34r","CONTENT",'{$examBasic.a34r}');
        LODOP.SET_PRINT_STYLEA("a35l","CONTENT",'{$examBasic.a35l}');
        LODOP.SET_PRINT_STYLEA("a35r","CONTENT",'{$examBasic.a35r}');
        LODOP.SET_PRINT_STYLEA("a36l","CONTENT",'{$examBasic.a36l}');
        LODOP.SET_PRINT_STYLEA("a36r","CONTENT",'{$examBasic.a36r}');
        LODOP.SET_PRINT_STYLEA("a37l","CONTENT",'{$examBasic.a37l}');
        LODOP.SET_PRINT_STYLEA("a37r","CONTENT",'{$examBasic.a37r}');
        LODOP.SET_PRINT_STYLEA("a38l","CONTENT",'{$examBasic.a38l}');
        LODOP.SET_PRINT_STYLEA("a38r","CONTENT",'{$examBasic.a38r}');
        LODOP.SET_PRINT_STYLEA("a39l","CONTENT",'{$examBasic.a39l}');
        LODOP.SET_PRINT_STYLEA("a39r","CONTENT",'{$examBasic.a39r}');
        LODOP.SET_PRINT_STYLEA("a40l","CONTENT",'{$examBasic.a40l}');
        LODOP.SET_PRINT_STYLEA("a40r","CONTENT",'{$examBasic.a40r}');
        LODOP.SET_PRINT_STYLEA("a41l","CONTENT",'{$examBasic.a41l}');
        LODOP.SET_PRINT_STYLEA("a41r","CONTENT",'{$examBasic.a41r}');
        LODOP.SET_PRINT_STYLEA("a42l","CONTENT",'{$examBasic.a42l}');
        LODOP.SET_PRINT_STYLEA("a42r","CONTENT",'{$examBasic.a42r}');

        LODOP.SET_PRINT_STYLEA("a43","CONTENT",'{$examBasic.a43}');
        LODOP.SET_PRINT_STYLEA("a44","CONTENT",'{$examBasic.a44}');
        LODOP.SET_PRINT_STYLEA("a45","CONTENT",'{$examBasic.a45}');
        LODOP.SET_PRINT_STYLEA("a46","CONTENT",'{$examBasic.a46}');

//        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.employee_name}');
//        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.employee_name}');
//        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //SCO工单打印
    function WorksheetSco() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT"," " + '{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("heightsit","CONTENT"," " + '{$patientInfo.heightsit}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT"," " + '{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT"," " + '{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT"," " + '{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT"," " + '{$patientInfo.contact}，电话:{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("exam_time","CONTENT",'{$examBasic.update_time}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT",' {$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",' {$workorder.delivery_date}');
        LODOP.SET_PRINT_STYLEA("history","CONTENT",' {$patientInfo.history}');
        LODOP.SET_PRINT_STYLEA("special","CONTENT",' {$patientInfo.special}');

        LODOP.SET_PRINT_STYLEA("eb0","CONTENT",' {$examBasic.eb0}');
        LODOP.SET_PRINT_STYLEA("eb1_"+ '{$examBasic.eb1}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb2","CONTENT",' {$examBasic.eb2}');
        LODOP.SET_PRINT_STYLEA("eb3_"+ '{$examBasic.eb3}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("eb4","CONTENT",' {$examBasic.eb4}');
        LODOP.SET_PRINT_STYLEA("eb5_"+ '{$examBasic.eb5}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb6_"+ '{$examBasic.eb6}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb7_"+ '{$examBasic.eb7}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb8","CONTENT",' {$examBasic.eb8}');
        LODOP.SET_PRINT_STYLEA("eb9","CONTENT",' {$examBasic.eb9}');
        LODOP.SET_PRINT_STYLEA("eb10_"+ '{$examBasic.eb10}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb11_"+ '{$examBasic.eb11}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb12_"+ '{$examBasic.eb12}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb13","CONTENT",' {$examBasic.eb13}');

        LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        LODOP.SET_PRINT_STYLEA("em0","CONTENT",'{$examMeasure.em0}');
        LODOP.SET_PRINT_STYLEA("em1","CONTENT",'{$examMeasure.em1}');
        LODOP.SET_PRINT_STYLEA("em2","CONTENT",'{$examMeasure.em2}');
        LODOP.SET_PRINT_STYLEA("em3","CONTENT",'{$examMeasure.em3}');
        LODOP.SET_PRINT_STYLEA("em4","CONTENT",'{$examMeasure.em4}');
        LODOP.SET_PRINT_STYLEA("em5","CONTENT",'{$examMeasure.em5}');
        LODOP.SET_PRINT_STYLEA("em6","CONTENT",'{$examMeasure.em6}');
        LODOP.SET_PRINT_STYLEA("em7","CONTENT",'{$examMeasure.em7}');
        LODOP.SET_PRINT_STYLEA("em8","CONTENT",'{$examMeasure.em8}');
        LODOP.SET_PRINT_STYLEA("em9","CONTENT",'{$examMeasure.em9}');
        LODOP.SET_PRINT_STYLEA("em10","CONTENT",'{$examMeasure.em10}');
        LODOP.SET_PRINT_STYLEA("em11","CONTENT",'{$examMeasure.em11}');
        LODOP.SET_PRINT_STYLEA("em12","CONTENT",'{$examMeasure.em12}');
        LODOP.SET_PRINT_STYLEA("em13","CONTENT",'{$examMeasure.em13}');
        LODOP.SET_PRINT_STYLEA("em14","CONTENT",'{$examMeasure.em14}');
        LODOP.SET_PRINT_STYLEA("em15","CONTENT",'{$examMeasure.em15}');
        LODOP.SET_PRINT_STYLEA("em16","CONTENT",'{$examMeasure.em16}');
        LODOP.SET_PRINT_STYLEA("em17","CONTENT",'{$examMeasure.em17}');
        LODOP.SET_PRINT_STYLEA("em18","CONTENT",'{$examMeasure.em18}');
        LODOP.SET_PRINT_STYLEA("em19","CONTENT",'{$examMeasure.em19}');
        LODOP.SET_PRINT_STYLEA("em20","CONTENT",'{$examMeasure.em20}');
        LODOP.SET_PRINT_STYLEA("em21","CONTENT",'{$examMeasure.em21}');
        LODOP.SET_PRINT_STYLEA("em22","CONTENT",'{$examMeasure.em22}');
        LODOP.SET_PRINT_STYLEA("other", "CONTENT", '{$examMeasure.other}');
        LODOP.SET_PRINT_STYLEA("note", "CONTENT", '{$examMeasure.note}');
        LODOP.SET_PRINT_STYLEA("em23_"+ '{$examMeasure.em23}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em24","CONTENT",' {$examMeasure.em24}');
        LODOP.SET_PRINT_STYLEA("em25_"+ '{$examMeasure.em25}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em26","CONTENT",' {$examMeasure.em26}');
        LODOP.SET_PRINT_STYLEA("em27_"+ '{$examMeasure.em27}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em28","CONTENT",' {$examMeasure.em28}');
        LODOP.SET_PRINT_STYLEA("em29_"+ '{$examMeasure.em29}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em30","CONTENT",' {$examMeasure.em30}');
        LODOP.SET_PRINT_STYLEA("em31_"+ '{$examMeasure.em31}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em32","CONTENT",' {$examMeasure.em32}');
        LODOP.SET_PRINT_STYLEA("em33_"+ '{$examMeasure.em33}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em34","CONTENT",' {$examMeasure.em34}');
        LODOP.SET_PRINT_STYLEA("em35_"+ '{$examMeasure.em35}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em36","CONTENT",' {$examMeasure.em36}');
        LODOP.SET_PRINT_STYLEA("em37_"+ '{$examMeasure.em37}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em38","CONTENT",' {$examMeasure.em38}');


        var chest1Arr = '{$examMeasure.chest1}'.split(",");
        for(var i=0;i<chest1Arr.length;i++){
            var name = "chest1_"+ chest1Arr[i];
            if(chest1Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest2Arr = '{$examMeasure.chest2}'.split(",");
        for(var i=0;i<chest2Arr.length;i++){
            var name = "chest2_"+ chest2Arr[i];
            if(chest2Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest3Arr = '{$examMeasure.chest3}'.split(",");
        for(var i=0;i<chest3Arr.length;i++){
            var name = "chest3_"+ chest3Arr[i];
            if(chest3Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest4Arr = '{$examMeasure.chest4}'.split(",");
        for(var i=0;i<chest4Arr.length;i++){
            var name = "chest4_"+ chest4Arr[i];
            if(chest4Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        if('{$workorder.version}' == '1') {
            LODOP.SET_PRINT_STYLEA("abdomen","CONTENT"," " + '{$examMeasure.abdomen}');
            LODOP.SET_PRINT_STYLEA("oxter","CONTENT"," " + '{$examMeasure.oxter}');
            LODOP.SET_PRINT_STYLEA("xiphoid","CONTENT"," " + '{$examMeasure.xiphoid}');
            LODOP.SET_PRINT_STYLEA("iliopsoas","CONTENT"," " + '{$examMeasure.iliopsoas}');
            LODOP.SET_PRINT_STYLEA("anterior","CONTENT"," " + '{$examMeasure.anterior}');
            LODOP.SET_PRINT_STYLEA("trochanter","CONTENT"," " + '{$examMeasure.trochanter}');
            LODOP.SET_PRINT_STYLEA("vertex","CONTENT"," " + '{$examMeasure.vertex}');
            LODOP.SET_PRINT_STYLEA("sit_height","CONTENT"," " + '{$examMeasure.sit_height}');
            LODOP.SET_PRINT_STYLEA("stand_height","CONTENT"," " + '{$examMeasure.stand_height}');
            LODOP.SET_PRINT_STYLEA("cobb","CONTENT"," " + '{$examMeasure.cobb}');
            if('{$examMeasure.pelvic_}' == 0){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左高右低');
            }
            if('{$examMeasure.pelvic_}' == 1){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左低右高');
            }
            if('{$examMeasure.shoulder}' == 0){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左高右低');
            }
            if('{$examMeasure.shoulder}' == 1){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左低右高');
            }
            LODOP.SET_PRINT_STYLEA("rotate_"+ '{$examMeasure.rotate}',"CONTENT","√");
        }
        if('{$workorder.version}' == '2') {
            LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function WorksheetKafo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT"," " + '{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}cm');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}kg');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT",'{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",' {$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",' {$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');

        LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("eb0","CONTENT",' {$examBasic.eb0}');
        LODOP.SET_PRINT_STYLEA("eb1","CONTENT",' {$examBasic.eb1}');
        LODOP.SET_PRINT_STYLEA("eb2","CONTENT",' 取型时{$examBasic.eb2}');
        LODOP.SET_PRINT_STYLEA("eb3","CONTENT",' {$examBasic.eb3}');
        LODOP.SET_PRINT_STYLEA("eb45","CONTENT",' {$examBasic.eb4}  {$examBasic.eb5}');
        LODOP.SET_PRINT_STYLEA("ebl0","CONTENT",' {$examBasic.ebl0}');

        var listEbArr=<?php echo json_encode($examBasic);?>;
        var listEb=eval(listEbArr);

        for(var i=6;i<=41;i++){
            var name = "eb" + i;
            LODOP.SET_PRINT_STYLEA(name,"CONTENT",listEb[name]);
            LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
        }

        if(typeof($examMeasure) != 'undefined'){
            var listEmArr=<?php echo json_encode($examMeasure);?>;
            var listEm=eval(listEmArr);

            for(var i=0;i<=24;i++){
                var name = "em" + i;
                LODOP.SET_PRINT_STYLEA(name,"CONTENT",listEm[name]);
                LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
            }
        }


        if('{$workorder.workorder_type}' == '6'){
            LODOP.SET_PRINT_STYLEA("em_image", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/exam_KO.jpg'>");
        }else{
            LODOP.SET_PRINT_STYLEA("white","PreviewOnly",2);
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function PrescribeKafo() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

//        LODOP.SET_PRINT_STYLEA("side","CONTENT",'({$workorder.side})');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT"," " + '{$rx.other_type}[{$rx.other_price}]');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT"," " + '{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$rx.adapt}',"CONTENT","√");

        LODOP.SET_PRINT_STYLEA("rt0","CONTENT",'[{$rx.rt0}] {$workorder.side}');
        LODOP.SET_PRINT_STYLEA("rt1","CONTENT",'{$rx.rt1}');
        LODOP.SET_PRINT_STYLEA("rt2","CONTENT",'{$rx.rt2}');
        LODOP.SET_PRINT_STYLEA("rt3","CONTENT",'{$rx.rt3}');
        LODOP.SET_PRINT_STYLEA("rt4","CONTENT",'{$rx.rt4}');
        LODOP.SET_PRINT_STYLEA("rt5","CONTENT",'{$rx.rt5}');
        var rt6789 = '{$rx.rt6}';
        if('{$rx.rt7}' != ""){
            rt6789 += '：{$rx.rt7}';
        }
        rt6789 += '。{$rx.rt8}';
        if('{$rx.rt9}' != ""){
            rt6789 += ' ：{$rx.rt9}';
        }
        LODOP.SET_PRINT_STYLEA("rt6789","CONTENT", rt6789);

        var rt10111213 = '{$rx.rt10}';
        if('{$rx.rt11}' != ""){
            rt10111213 += '：{$rx.rt11}';
        }
        rt10111213 += '。{$rx.rt12}';
        if('{$rx.rt13}' != ""){
            rt10111213 += ' ：{$rx.rt13}';
        }
        LODOP.SET_PRINT_STYLEA("rt10111213","CONTENT", rt10111213);
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT",'{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT",'{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT",'{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT",'{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT",'{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT",'{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT",'{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT",'{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function WorksheetFo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}cm');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}kg');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT",'{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",' {$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",' {$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        var doc = '';
        if('{$patientInfo.doctor}' != ''){
            doc = '医生:{$patientInfo.doctor},';
        }
        if('{$patientInfo.hospital}' != ''){
            doc += '(医院:{$patientInfo.hospital})';
        }
        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("eb13","CONTENT",'{$examBasic.eb13}');
        LODOP.SET_PRINT_STYLEA("eb1415","CONTENT",'{$examBasic.eb14}({$examBasic.eb15}码)');

        var toe = '{$examBasic.eb0}';
        if('{$examBasic.eb1}' != ""){
            toe += '，备注：{$examBasic.eb1}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);

        var forefoot = '{$examBasic.eb2}';
        if('{$examBasic.eb3}' != ""){
            forefoot += '，{$examBasic.eb3}';
        }
        if('{$examBasic.eb4}' != ""){
            forefoot += '，备注：{$examBasic.eb4}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.eb5}';
        if('{$examBasic.eb6}' != ""){
            footarch += '，备注：{$examBasic.eb6}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.eb7}';
        if('{$examBasic.eb8}' != ""){
            complheel += ',负重位：{$examBasic.eb8}({$examBasic.eb9})°';
        }
        if('{$examBasic.eb10}' != ""){
            complheel += ',非负重位：{$examBasic.eb10}({$examBasic.eb11})°';
        }
        if('{$examBasic.eb12}' != ""){
            complheel += '，备注：{$examBasic.eb12}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("ebl0","CONTENT",'{$examBasic.ebl0}');

        LODOP.SET_PRINT_STYLEA("em0","CONTENT",'{$examMeasure.em0}');
        LODOP.SET_PRINT_STYLEA("em1","CONTENT",'{$examMeasure.em1}');
        LODOP.SET_PRINT_STYLEA("em2","CONTENT",'{$examMeasure.em2}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'取型时{$examMeasure.burden}');

        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function PrescribeFo() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

//        LODOP.SET_PRINT_STYLEA("side","CONTENT",'({$workorder.side})');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("other_type","CONTENT"," " + '{$rx.other_type}[{$rx.other_price}]');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT"," " + '{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$rx.adapt}',"CONTENT","√");

        var rt0 = '[{$rx.rt0}';
        if('{$rx.rt1}' != ""){
            rt0 += '：{$rx.rt1}';
        }
        rt0 += '] {$workorder.side}';
        LODOP.SET_PRINT_STYLEA("rt0","CONTENT",rt0);
        LODOP.SET_PRINT_STYLEA("rt1","CONTENT",'{$rx.rt1}');
        LODOP.SET_PRINT_STYLEA("rt2","CONTENT",'{$rx.rt2}');
        LODOP.SET_PRINT_STYLEA("rt3","CONTENT",'{$rx.rt3}');
        LODOP.SET_PRINT_STYLEA("rt4","CONTENT",'{$rx.rt4}');
        LODOP.SET_PRINT_STYLEA("rt5","CONTENT",'{$rx.rt5}');
        var rt6789 = '{$rx.rt6}';
        if('{$rx.rt7}' != ""){
            rt6789 += '：{$rx.rt7}';
        }
        rt6789 += '。{$rx.rt8}';
        if('{$rx.rt9}' != ""){
            rt6789 += ' ：{$rx.rt9}';
        }
        LODOP.SET_PRINT_STYLEA("rt6789","CONTENT", rt6789);

        var rt10111213 = '{$rx.rt10}';
        if('{$rx.rt11}' != ""){
            rt10111213 += '：{$rx.rt11}';
        }
        rt10111213 += '。{$rx.rt12}';
        if('{$rx.rt13}' != ""){
            rt10111213 += ' ：{$rx.rt13}';
        }
        LODOP.SET_PRINT_STYLEA("rt10111213","CONTENT", rt10111213);
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT",'{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT",'{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT",'{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT",'{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT",'{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT",'{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT",'{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT",'{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function WorksheetShank() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page1.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT"," " + '{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}cm');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}kg');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("id_no","CONTENT",'{$patientInfo.id_no}');
        LODOP.SET_PRINT_STYLEA("happen_date","CONTENT"," " + '{$patientInfo.happen_date}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT","      "+'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",' {$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",' {$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        var doc = '';
        if('{$patientInfo.doctor}' != ''){
            doc = '医生:{$patientInfo.doctor},';
        }
        if('{$patientInfo.hospital}' != ''){
            doc += '(医院:{$patientInfo.hospital})';
        }
        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("eb13","CONTENT",'{$examBasic.eb13}');
        LODOP.SET_PRINT_STYLEA("eb1415","CONTENT",'{$examBasic.eb14}({$examBasic.eb15}码)');

        var toe = '{$examBasic.eb0}';
        if('{$examBasic.eb1}' != ""){
            toe += '，备注：{$examBasic.eb1}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);

        var forefoot = '{$examBasic.eb2}';
        if('{$examBasic.eb3}' != ""){
            forefoot += '，{$examBasic.eb3}';
        }
        if('{$examBasic.eb4}' != ""){
            forefoot += '，备注：{$examBasic.eb4}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.eb5}';
        if('{$examBasic.eb6}' != ""){
            footarch += '，备注：{$examBasic.eb6}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.eb7}';
        if('{$examBasic.eb8}' != ""){
            complheel += ',负重位：{$examBasic.eb8}({$examBasic.eb9})°';
        }
        if('{$examBasic.eb10}' != ""){
            complheel += ',非负重位：{$examBasic.eb10}({$examBasic.eb11})°';
        }
        if('{$examBasic.eb12}' != ""){
            complheel += '，备注：{$examBasic.eb12}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("ebl0","CONTENT",'{$examBasic.ebl0}');

        LODOP.SET_PRINT_STYLEA("em0","CONTENT",'{$examMeasure.em0}');
        LODOP.SET_PRINT_STYLEA("em1","CONTENT",'{$examMeasure.em1}');
        LODOP.SET_PRINT_STYLEA("em2","CONTENT",'{$examMeasure.em2}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'取型时{$examMeasure.burden}');

        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function PrescribeShank() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$page2.template_content}'); //装载模板
        //按类名赋值
        if('{$rx.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

//        LODOP.SET_PRINT_STYLEA("side","CONTENT",'({$workorder.side})');
        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$workorder.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$workorder.delivery_date}');
        LODOP.SET_PRINT_STYLEA("prescriber","CONTENT"," " + '{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");

         LODOP.SET_PRINT_STYLEA("rt0","CONTENT",'{$rx.rt0}');
        LODOP.SET_PRINT_STYLEA("rt1","CONTENT",'{$rx.rt1}');
        LODOP.SET_PRINT_STYLEA("rt2","CONTENT",'{$rx.rt2}');
        LODOP.SET_PRINT_STYLEA("rt3","CONTENT",'{$rx.rt3}');
        LODOP.SET_PRINT_STYLEA("rt4","CONTENT",'{$rx.rt4}');
        LODOP.SET_PRINT_STYLEA("rt5","CONTENT",'{$rx.rt5}');
        var rt6789 = '{$rx.rt6}';
        if('{$rx.rt7}' != ""){
            rt6789 += '：{$rx.rt7}';
        }
        rt6789 += '。{$rx.rt8}';
        if('{$rx.rt9}' != ""){
            rt6789 += ' ：{$rx.rt9}';
        }
        LODOP.SET_PRINT_STYLEA("rt6789","CONTENT", rt6789);

        var rt10111213 = '{$rx.rt10}';
        if('{$rx.rt11}' != ""){
            rt10111213 += '：{$rx.rt11}';
        }
        rt10111213 += '。{$rx.rt12}';
        if('{$rx.rt13}' != ""){
            rt10111213 += ' ：{$rx.rt13}';
        }
        LODOP.SET_PRINT_STYLEA("rt10111213","CONTENT", rt10111213);
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT",'{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT",'{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT",'{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT",'{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT",'{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT",'{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT",'{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT",'{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录患者信息
    function Order1() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order1.template_content}'); //装载模板
        //按类名赋值
//        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');
        LODOP.SET_PRINT_STYLEA("patient_name","CONTENT",'{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("sex","CONTENT",'{$patientInfo.sex}');
        LODOP.SET_PRINT_STYLEA("age","CONTENT",'{$patientInfo.age}');
        LODOP.SET_PRINT_STYLEA("height","CONTENT",'{$patientInfo.height}');
        LODOP.SET_PRINT_STYLEA("weight","CONTENT",'{$patientInfo.weight}');
        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT",'{$patientInfo.diagnosis}');
        LODOP.SET_PRINT_STYLEA("address","CONTENT",'{$patientInfo.address}');
        LODOP.SET_PRINT_STYLEA("contact","CONTENT",'{$patientInfo.contact}');
        LODOP.SET_PRINT_STYLEA("mobile","CONTENT",'{$patientInfo.mobile}');
        LODOP.SET_PRINT_STYLEA("diagnosis1","CONTENT",'{$patientInfo.diagnosis1}');
        LODOP.SET_PRINT_STYLEA("diagnosis2","CONTENT",'{$patientInfo.diagnosis2}');
        LODOP.SET_PRINT_STYLEA("diagnosis3","CONTENT",'{$patientInfo.diagnosis3}');
        LODOP.SET_PRINT_STYLEA("diagnosis4","CONTENT",'{$patientInfo.diagnosis4}');
        LODOP.SET_PRINT_STYLEA("diagnosis5","CONTENT",'{$patientInfo.diagnosis5}');
//        var doc = '';
//        if('{$patientInfo.doctor}' != ''){
//            doc = '医生：{$patientInfo.doctor}\n';
//        }
//        if('{$patientInfo.hospital}' != ''){
//            doc += '医院：({$patientInfo.hospital})';
//        }
//        LODOP.SET_PRINT_STYLEA("doctor","CONTENT",doc);

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    //批记录物理检查AFO
    function Order2() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("mobility","CONTENT",'{$examBasic.mobility}');
        LODOP.SET_PRINT_STYLEA("shankcontrol","CONTENT",'{$examBasic.shankcontrol}');
        LODOP.SET_PRINT_STYLEA("gait","CONTENT",'{$examBasic.gait}');
        if('{$examBasic.burden}' != ""){
            LODOP.SET_PRINT_STYLEA("castburden","CONTENT",'取型时{$examBasic.burden}');
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",'{$examBasic.footarch}');
        var toe = '{$examBasic.toe}';
        if('{$examBasic.notetoe}' != ""){
            toe += '，备注：{$examBasic.notetoe}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);
        LODOP.SET_PRINT_STYLEA("height_heel","CONTENT",'{$examBasic.height_heel}');
        LODOP.SET_PRINT_STYLEA("shoe_size","CONTENT",'{$examBasic.shoe_type}({$examBasic.shoe_size}码)');
        var forefoot = '{$examBasic.forefoot}';
        if('{$examBasic.complforefoot}' != ""){
            forefoot += '，{$examBasic.complforefoot}';
        }
        if('{$examBasic.noteforefoot}' != ""){
            forefoot += '，备注：{$examBasic.noteforefoot}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.footarch}';
        if('{$examBasic.notefootarch}' != ""){
            footarch += '，备注：{$examBasic.notefootarch}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.complheel}';
        if('{$examBasic.heela}' != ""){
            complheel += ',负重位：{$examBasic.heela}({$examBasic.heelaangle})°';
        }
        if('{$examBasic.heelb}' != ""){
            complheel += ',非负重位：{$examBasic.heelb}({$examBasic.heelbangle})°';
        }
        if('{$examBasic.noteheel}' != ""){
            complheel += '，备注：{$examBasic.noteheel}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("discomfort","CONTENT",'                                   {$examBasic.discomfort}');
        LODOP.SET_PRINT_STYLEA("anklesymmetry","CONTENT",'             {$examBasic.anklesymmetry}');
        LODOP.SET_PRINT_STYLEA("dysfunction","CONTENT",'                       {$examBasic.dysfunction}');
        if('{$examBasic.takephoto}' == "1"){
            LODOP.SET_PRINT_STYLEA("takephoto","CONTENT","√");
        }
        if('{$examBasic.takevideo}' == "1"){
            LODOP.SET_PRINT_STYLEA("takevideo","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');
        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录物理检查TLSO
    function Order2Spn() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("create_time","CONTENT",'{$workorder.create_time}');
        LODOP.SET_PRINT_STYLEA("mobility_"+ '{$examBasic.mobility}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_"+ '{$examBasic.stand}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("stand_describe","CONTENT",'{$examBasic.stand_describe}');
        LODOP.SET_PRINT_STYLEA("sit_"+ '{$examBasic.sit}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("sit_describe","CONTENT",'{$examBasic.sit_describe}');
        LODOP.SET_PRINT_STYLEA("endurance_"+ '{$examBasic.endurance}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("endurance_time","CONTENT"," " + '{$examBasic.endurance_time}');
        if('{$examBasic.structure}' == '0'){
            LODOP.SET_PRINT_STYLEA("structure","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.broken}' == '1'){
            LODOP.SET_PRINT_STYLEA("broken","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("broken_part","CONTENT"," " + '{$examBasic.broken_part}');
        LODOP.SET_PRINT_STYLEA("boneQuality_"+ '{$examBasic.boneQuality}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("spine_gap","CONTENT",'{$examBasic.spine_gap}');
        if('{$examBasic.feeling}' == '0'){
            LODOP.SET_PRINT_STYLEA("feeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("bone_quality_"+ '{$examBasic.bone_quality}',"CONTENT","√");
        if('{$examBasic.nofeeling}' == '1'){
            LODOP.SET_PRINT_STYLEA("nofeeling","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("nofeeling_part","CONTENT",'{$examBasic.nofeeling_part}');
        if('{$examBasic.pain}' == '1'){
            LODOP.SET_PRINT_STYLEA("pain","CONTENT","√");
        }
        LODOP.SET_PRINT_STYLEA("pain_part","CONTENT",'{$examBasic.pain_part}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录物理检查SCO
    function Order2Sco() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("eb0","CONTENT",' {$examBasic.eb0}');
        LODOP.SET_PRINT_STYLEA("eb1_"+ '{$examBasic.eb1}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb2","CONTENT",' {$examBasic.eb2}');
        LODOP.SET_PRINT_STYLEA("eb3_"+ '{$examBasic.eb3}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("eb4","CONTENT",' {$examBasic.eb4}');
        LODOP.SET_PRINT_STYLEA("eb5_"+ '{$examBasic.eb5}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb6_"+ '{$examBasic.eb6}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb7_"+ '{$examBasic.eb7}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb8","CONTENT",' {$examBasic.eb8}');
        LODOP.SET_PRINT_STYLEA("eb9","CONTENT",' {$examBasic.eb9}');
        LODOP.SET_PRINT_STYLEA("eb10_"+ '{$examBasic.eb10}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb11_"+ '{$examBasic.eb11}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb12_"+ '{$examBasic.eb12}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("eb13","CONTENT",' {$examBasic.eb13}');

        LODOP.SET_PRINT_STYLEA("em23_"+ '{$examMeasure.em23}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em24","CONTENT",' {$examMeasure.em24}');
        LODOP.SET_PRINT_STYLEA("em25_"+ '{$examMeasure.em25}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em26","CONTENT",' {$examMeasure.em26}');
        LODOP.SET_PRINT_STYLEA("em27_"+ '{$examMeasure.em27}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em28","CONTENT",' {$examMeasure.em28}');
        LODOP.SET_PRINT_STYLEA("em29_"+ '{$examMeasure.em29}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em30","CONTENT",' {$examMeasure.em30}');
        LODOP.SET_PRINT_STYLEA("em31_"+ '{$examMeasure.em31}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em32","CONTENT",' {$examMeasure.em32}');
        LODOP.SET_PRINT_STYLEA("em33_"+ '{$examMeasure.em33}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em34","CONTENT",' {$examMeasure.em34}');
        LODOP.SET_PRINT_STYLEA("em35_"+ '{$examMeasure.em35}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em36","CONTENT",' {$examMeasure.em36}');
        LODOP.SET_PRINT_STYLEA("em37_"+ '{$examMeasure.em37}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("em38","CONTENT",' {$examMeasure.em38}');

        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录物理检查Kafo
    function Order2Kafo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("eb0","CONTENT",' {$examBasic.eb0}');
        LODOP.SET_PRINT_STYLEA("eb1","CONTENT",' {$examBasic.eb1}');
        LODOP.SET_PRINT_STYLEA("eb2","CONTENT",' 取型时{$examBasic.eb2}');
        LODOP.SET_PRINT_STYLEA("eb3","CONTENT",' {$examBasic.eb3}');
        LODOP.SET_PRINT_STYLEA("eb45","CONTENT",' {$examBasic.eb4}  {$examBasic.eb5}');
        LODOP.SET_PRINT_STYLEA("ebl0","CONTENT",' {$examBasic.ebl0}');

        if(typeof($examBasic) != 'undefined'){
            var listEbArr=<?php echo json_encode($examBasic);?>;
            var listEb=eval(listEbArr);

            for(var i=6;i<=41;i++){
                var name = "eb" + i;
                LODOP.SET_PRINT_STYLEA(name,"CONTENT",listEb[name]);
                LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
            }
        }
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录物理检查Fo
    function Order2Fo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');
        LODOP.SET_PRINT_STYLEA("eb13","CONTENT",'{$examBasic.eb13}');
        LODOP.SET_PRINT_STYLEA("eb1415","CONTENT",'{$examBasic.eb14}({$examBasic.eb15}码)');

        var toe = '{$examBasic.eb0}';
        if('{$examBasic.eb1}' != ""){
            toe += '，备注：{$examBasic.eb1}';
        }
        LODOP.SET_PRINT_STYLEA("toe","CONTENT",toe);

        var forefoot = '{$examBasic.eb2}';
        if('{$examBasic.eb3}' != ""){
            forefoot += '，{$examBasic.eb3}';
        }
        if('{$examBasic.eb4}' != ""){
            forefoot += '，备注：{$examBasic.eb4}';
        }
        LODOP.SET_PRINT_STYLEA("forefoot","CONTENT",forefoot);
        var footarch = '{$examBasic.eb5}';
        if('{$examBasic.eb6}' != ""){
            footarch += '，备注：{$examBasic.eb6}';
        }
        LODOP.SET_PRINT_STYLEA("footarch","CONTENT",footarch);
        var complheel = '{$examBasic.eb7}';
        if('{$examBasic.eb8}' != ""){
            complheel += ',负重位：{$examBasic.eb8}({$examBasic.eb9})°';
        }
        if('{$examBasic.eb10}' != ""){
            complheel += ',非负重位：{$examBasic.eb10}({$examBasic.eb11})°';
        }
        if('{$examBasic.eb12}' != ""){
            complheel += '，备注：{$examBasic.eb12}';
        }
        LODOP.SET_PRINT_STYLEA("complheel","CONTENT",complheel);
        LODOP.SET_PRINT_STYLEA("ebl0","CONTENT",'{$examBasic.ebl0}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'取型时{$examMeasure.burden}');

        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录处方AFO
    function Order3() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板
        //按类名赋值
        if('{$workorder.completed}' == '1'){
            LODOP.SET_PRINT_STYLEA("completed","CONTENT", '');
        }
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("price","CONTENT"," " + '{$rx.price}');
        LODOP.SET_PRINT_STYLEA("examinator","CONTENT"," " + '{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("sales","CONTENT"," " + '{$sales.admin_name}');
        LODOP.SET_PRINT_STYLEA("delivery_date","CONTENT",'{$rx.delivery_date}');
        if("{$prescriber.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_prescriber","CONTENT","<img src='" + '{$prescriber.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("adapt_"+ '{$workorder.adapt}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_"+ '{$examAnalysis.ankle_type}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_type_other","CONTENT"," " + '{$examAnalysis.ankle_type_other}');
//        LODOP.SET_PRINT_STYLEA("ankle_size_"+ '{$examAnalysis.ankle_size}',"CONTENT","√");
//        LODOP.SET_PRINT_STYLEA("ankle_activity_"+ '{$examAnalysis.ankle_activity}',"CONTENT","√");
//        if('{$examAnalysis.ankle_activity}' == "0"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option1_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//        }
//        if('{$examAnalysis.ankle_activity}' == "1"){
//            LODOP.SET_PRINT_STYLEA("ankle_activity_option2_"+ '{$examAnalysis.ankle_activity_option}',"CONTENT","√");
//            if('{$examAnalysis.ankle_activity_option}' == "2"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other1","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//            if('{$examAnalysis.ankle_activity_option}' == "3"){
//                LODOP.SET_PRINT_STYLEA("ankle_activity_other2","CONTENT"," " + '{$examAnalysis.ankle_activity_other}');
//            }
//        }

   //     if('{$rx.combo}' == "是"){
            LODOP.SET_PRINT_STYLEA("combo","CONTENT","√");
            LODOP.SET_PRINT_STYLEA("afotype_in","CONTENT", '内靴类型：{$afotype_in}');
   //     }

        LODOP.SET_PRINT_STYLEA("afotype_out","CONTENT", '外靴类型：{$afotype_out}');

        var dorsal_supArr = "";
        if('{$rx.activity_limit}' != ""){
            dorsal_supArr += '活动限制:{$rx.activity_limit}。';
        }
        if('{$rx.limit_level}' != ""){
            if('{$rx.limit_level_angle}' != ""){
                dorsal_supArr += '限制程度:{$rx.limit_level}--{$rx.limit_level_angle}度。';
            }else{
                dorsal_supArr += '限制程度:{$rx.limit_level}。';
            }
        }
        if('{$rx.limit_level_other}' != ""){
            dorsal_supArr += '其它:{$rx.limit_level_other}';
        }
        LODOP.SET_PRINT_STYLEA("dorsal_sup","CONTENT", dorsal_supArr);

        if('{$rx.flex_other}' != ""){
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}。其他:{$rx.flex_other}');
        }else{
            LODOP.SET_PRINT_STYLEA("flex","CONTENT", '{$flex}');
        }


        LODOP.SET_PRINT_STYLEA("afotype_out_note","CONTENT", '{$rx.afotype_out_note}');
    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("afotype_in_note", "CONTENT", '{$rx.afotype_in_note}');
   //     }
        LODOP.SET_PRINT_STYLEA("afotype_other_note","CONTENT", '{$rx.afotype_other_note}');
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("ahsize","CONTENT", '{$rx.ahsize}');
        LODOP.SET_PRINT_STYLEA("activity_limit","CONTENT", '{$rx.activity_limit}');
        LODOP.SET_PRINT_STYLEA("limit_level","CONTENT", '{$rx.limit_level}');
        if('{$rx.limit_level_angle}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_angle", "CONTENT", '(角度:{$rx.limit_level_angle}°)');
        }
        if('{$rx.limit_level_other}' != "") {
            LODOP.SET_PRINT_STYLEA("limit_level_other", "CONTENT", '其它铰链及限制说明:{$rx.limit_level_other}');
        }
        LODOP.SET_PRINT_STYLEA("ahtype","CONTENT", '{$rx.ahtype}');
        LODOP.SET_PRINT_STYLEA("sag","CONTENT", 'AA：{$rx.sag_aa}°，SVA：{$rx.sag_sva}°');
        var heelArr = "";
        if('{$rx.heel}' != ""){
            heelArr += '跟骨：{$rx.heel}';
        }
        if('{$rx.heel_angle}' != ""){
            heelArr += '--{$rx.heel_angle}°。';
        }else{
            heelArr += '。';
        }
        if('{$rx.forefoot}' != ""){
            heelArr += '前足：{$rx.forefoot}';
        }
        LODOP.SET_PRINT_STYLEA("heel","CONTENT", heelArr);

//        if('{$rx.shankab}' == ""){
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'A小腿前倾不足：{$rx.shanka}，{$rx.in_shanka}');
//        }else{
//            LODOP.SET_PRINT_STYLEA("shank","CONTENT", 'B小腿过度前倾：{$rx.shankb}');
//        }

        LODOP.SET_PRINT_STYLEA("outproduct","CONTENT", '{$rx.outproduct}');
        var outArr = "";
        if('{$rx.out_pp}' != ""){
            outArr += "PP：" + '{$rx.out_pp}，';
        }
        if('{$rx.out_carbpp}' != ""){
            outArr += "碳纤PP：" + '{$rx.out_carbpp}，';
        }
        if('{$rx.out_copp}' != ""){
            outArr += "共聚PP：" + '{$rx.out_copp}，';
        }
        if('{$rx.out_pe}' != ""){
            outArr += "PE：" + '{$rx.out_pe}，';
        }
        if('{$rx.out_enhpe}' != ""){
            outArr += "改性PE：" + '{$rx.out_enhpe}，';
        }
        if('{$rx.out_dy}' != ""){
            outArr += "Dynamolene：" + '{$rx.out_dy}，';
        }
        LODOP.SET_PRINT_STYLEA("out_m","CONTENT", outArr);

    //    if('{$rx.combo}' == "是") {
            LODOP.SET_PRINT_STYLEA("inproduct", "CONTENT", '{$rx.inproduct}');
            var inArr = "";
            if ('{$rx.in_dy}' != "") {
                inArr += "Dynamolene：" + '{$rx.in_dy}，';
            }
            if ('{$rx.in_enhpe}' != "") {
                inArr += "改性PE：" + '{$rx.in_enhpe}，';
            }
            if ('{$rx.in_copp}' != "") {
                inArr += "共聚PP：" + '{$rx.in_copp}，';
            }
            if ('{$rx.in_pp}' != "") {
                inArr += "PP：" + '{$rx.in_pp}，';
            }
            if ('{$rx.in_eva}' != "") {
                inArr += "EVA：" + '{$rx.in_eva}，';
            }
            LODOP.SET_PRINT_STYLEA("in_m", "CONTENT", inArr);

            LODOP.SET_PRINT_STYLEA("innerproduct", "CONTENT", '{$rx.innerproduct}');
            var innerArr = "";
            if ('{$rx.inner_al}' != "") {
                innerArr += "Aliplast：" + '{$rx.inner_al}，';
            }
            if ('{$rx.inner_eva}' != "") {
                innerArr += "EVA：" + '{$rx.inner_eva}，';
            }
            if ('{$rx.inner_other}' != "") {
                innerArr += "其他内衬：" + '{$rx.inner_other}';
            }
            LODOP.SET_PRINT_STYLEA("inner_m", "CONTENT", innerArr);
   //     }

        var mould_outArr = "";
        if('{$mould_out}' != ""){
            mould_outArr += '{$mould_out},';
        }
        if('{$rx.mould_out_a}' != ""){
            mould_outArr += '跟骨内侧楔形:{$rx.mould_out_a}°,';
        }
        if('{$rx.mould_out_b}' != ""){
            mould_outArr += '跟骨外侧楔形:{$rx.mould_out_b}°,';
        }
        if('{$rx.mould_out_c}' != ""){
            mould_outArr += '中足内侧楔形:{$rx.mould_out_c}°,';
        }
        if('{$rx.mould_out_d}' != ""){
            mould_outArr += '中足外侧楔形:{$rx.mould_out_d}°,';
        }
        if('{$rx.mould_out_e}' != ""){
            mould_outArr += '前脚掌加长:{$rx.mould_out_e},';
        }
        if('{$rx.mould_out_f}' != ""){
            mould_outArr += '跖趾关节前翘:{$rx.mould_out_f}°,';
        }
        if('{$rx.mould_out_g}' != ""){
            mould_outArr += '趾间关节前翘:{$rx.mould_out_g}°,';
        }
        if('{$rx.mould_out_h}' != ""){
            mould_outArr += '第{$rx.mould_out_h}跖趾关节下免荷,';
        }
        if('{$rx.mould_out_i}' != ""){
            mould_outArr += '其它：{$rx.mould_out_i}';
        }
        LODOP.SET_PRINT_STYLEA("mould_out","CONTENT", mould_outArr);

//        if('{$rx.combo}' == "是") {
//            var mould_inArr = "";
//            if ('{$mould_in}' != "") {
//                mould_inArr += '{$mould_in},';
//            }
//            if ('{$rx.mould_in_a}' != "") {
//                mould_inArr += '前脚掌加长:{$rx.mould_in_a},';
//            }
//            if ('{$rx.mould_in_b}' != "") {
//                mould_inArr += '跖趾关节前翘:{$rx.mould_in_b}°,';
//            }
//            if ('{$rx.mould_in_c}' != "") {
//                mould_inArr += '趾间关节前翘:{$rx.mould_in_c}°,';
//            }
//            if ('{$rx.mould_in_d}' != "") {
//                mould_inArr += '第{$rx.mould_in_d}跖趾关节下免荷,';
//            }
//            if ('{$rx.mould_in_e}' != "") {
//                mould_inArr += '其它:{$rx.mould_in_e}';
//            }
//            LODOP.SET_PRINT_STYLEA("mould_in", "CONTENT", mould_inArr);
//        }

        var wedge_outArr = "";
        if('{$rx.wedge_out_pos}' != ""){
            wedge_outArr += '位于：{$rx.wedge_out_pos},';
        }
        if('{$rx.wedge_out_b}' != ""){
            wedge_outArr += '前足：{$rx.wedge_out_b}--{$rx.wedge_out_a}°,';
        }
        if('{$rx.wedge_out_d}' != ""){
            wedge_outArr += '中足：{$rx.wedge_out_d}--{$rx.wedge_out_c}° ';
        }
        if('{$rx.wedge_out_f}' != ""){
            wedge_outArr += '后足：{$rx.wedge_out_f}--{$rx.wedge_out_e}°,';
        }
        if('{$rx.wedge_out_g}' != ""){
            wedge_outArr += '其它：{$rx.wedge_out_g}';
        }
        LODOP.SET_PRINT_STYLEA("wedge_out","CONTENT", wedge_outArr);

    //    if('{$rx.combo}' == "是") {
            var wedge_inArr = "";
            if('{$rx.wedge_in_pos}' != ""){
                wedge_inArr += '位于：{$rx.wedge_in_pos},';
            }
            if('{$rx.wedge_in_b}' != ""){
                wedge_inArr += '前足：{$rx.wedge_in_b}--{$rx.wedge_in_a}°,';
            }
            if('{$rx.wedge_in_d}' != ""){
                wedge_inArr += '中足：{$rx.wedge_in_d}--{$rx.wedge_in_c}° ';
            }
            if('{$rx.wedge_in_f}' != ""){
                wedge_inArr += '后足：{$rx.wedge_in_f}--{$rx.wedge_in_e}°,';
            }
            if('{$rx.wedge_in_g}' != ""){
                wedge_inArr += '其它：{$rx.wedge_in_g}';
            }
            LODOP.SET_PRINT_STYLEA("wedge_in","CONTENT", wedge_inArr);
    //    }

        var soleArr = "";
        if('{$rx.sole_a}' != ""){
            soleArr += '足跟：{$rx.sole_a},  ';
        }
        if('{$rx.sole_b}' != ""){
            soleArr += '前足：{$rx.sole_b},  ';
        }
        if('{$rx.sole_b_angle}' != ""){
            soleArr += '描述：{$rx.sole_b_angle},  ';
        }
        if('{$rx.sole_c}' != ""){
            soleArr += '有效跟高：{$rx.sole_c},  ';
        }
        if('{$rx.sole_d}' != ""){
            soleArr += '其它要求：{$rx.sole_d}';
        }
        LODOP.SET_PRINT_STYLEA("sole","CONTENT", soleArr);

        var hasp_out_aArr = "";
        if('{$rx.hasp_out_len_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_len_a}，';
        }
        if('{$rx.hasp_out_type_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_type_a}，';
        }
        if('{$rx.hasp_out_tight_a}' != ""){
            hasp_out_aArr += '{$rx.hasp_out_tight_a}，';
        }
        if('{$rx.hasp_out_start_a}' != ""){
            hasp_out_aArr += '起点:{$rx.hasp_out_start_a}、{$rx.hasp_out_side_a},';
        }
        if('{$rx.hasp_out_start_a1}' != ""){
            hasp_out_aArr += '止点:{$rx.hasp_out_start_a1}、{$rx.hasp_out_side_a1},';
        }
        if('{$rx.hasp_out_other_a}' != ""){
            hasp_out_aArr += '其它：{$rx.hasp_out_other_a}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_a","CONTENT", hasp_out_aArr);

        var hasp_out_bArr = "";
        if('{$rx.hasp_out_len_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_len_b}，';
        }
        if('{$rx.hasp_out_type_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_type_b}，';
        }
        if('{$rx.hasp_out_tight_b}' != ""){
            hasp_out_bArr += '{$rx.hasp_out_tight_b}，';
        }
        if('{$rx.hasp_out_start_b}' != ""){
            hasp_out_bArr += '起点:{$rx.hasp_out_start_b}、{$rx.hasp_out_side_b},';
        }
        if('{$rx.hasp_out_start_b1}' != ""){
            hasp_out_bArr += '止点:{$rx.hasp_out_start_b1}、{$rx.hasp_out_side_b1},';
        }
        if('{$rx.hasp_out_other_b}' != ""){
            hasp_out_bArr += '其它：{$rx.hasp_out_other_b}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_b","CONTENT", hasp_out_bArr);

        var hasp_out_cArr = "";
        if('{$rx.hasp_out_len_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_len_c}，';
        }
        if('{$rx.hasp_out_type_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_type_c}，';
        }
        if('{$rx.hasp_out_tight_c}' != ""){
            hasp_out_cArr += '{$rx.hasp_out_tight_c}，';
        }
        if('{$rx.hasp_out_start_c}' != ""){
            hasp_out_cArr += '起点:{$rx.hasp_out_start_c}、{$rx.hasp_out_side_c},';
        }
        if('{$rx.hasp_out_start_c1}' != ""){
            hasp_out_cArr += '止点:{$rx.hasp_out_start_c1}、{$rx.hasp_out_side_c1},';
        }
        if('{$rx.hasp_out_other_c}' != ""){
            hasp_out_cArr += '其它：{$rx.hasp_out_other_c}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_c","CONTENT", hasp_out_cArr);

        var hasp_out_dArr = "";
        if('{$rx.hasp_out_len_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_len_d}，';
        }
        if('{$rx.hasp_out_type_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_type_d}，';
        }
        if('{$rx.hasp_out_tight_d}' != ""){
            hasp_out_dArr += '{$rx.hasp_out_tight_d}，';
        }
        if('{$rx.hasp_out_start_d}' != ""){
            hasp_out_dArr += '起点:{$rx.hasp_out_start_d}、{$rx.hasp_out_side_d},';
        }
        if('{$rx.hasp_out_start_d1}' != ""){
            hasp_out_dArr += '止点:{$rx.hasp_out_start_d1}、{$rx.hasp_out_side_d1},';
        }
        if('{$rx.hasp_out_other_d}' != ""){
            hasp_out_dArr += '其它：{$rx.hasp_out_other_d}，';
        }
        LODOP.SET_PRINT_STYLEA("hasp_out_d","CONTENT", hasp_out_dArr);

    //    if('{$rx.combo}' == "是") {
            var hasp_in_aArr = "";
            if('{$rx.hasp_in_len_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_len_a}，';
            }
            if('{$rx.hasp_in_type_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_type_a}，';
            }
            if('{$rx.hasp_in_tight_a}' != ""){
                hasp_in_aArr += '{$rx.hasp_in_tight_a}，';
            }
            if('{$rx.hasp_in_start_a}' != ""){
                hasp_in_aArr += '起点:{$rx.hasp_in_start_a}、{$rx.hasp_in_side_a},';
            }
            if('{$rx.hasp_in_start_a1}' != ""){
                hasp_in_aArr += '止点:{$rx.hasp_in_start_a1}、{$rx.hasp_in_side_a1},';
            }
            if('{$rx.hasp_in_other_a}' != ""){
                hasp_in_aArr += '其它：{$rx.hasp_in_other_a}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_a","CONTENT", hasp_in_aArr);

            var hasp_in_bArr = "";
            if('{$rx.hasp_in_len_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_len_b}，';
            }
            if('{$rx.hasp_in_type_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_type_b}，';
            }
            if('{$rx.hasp_in_tight_b}' != ""){
                hasp_in_bArr += '{$rx.hasp_in_tight_b}，';
            }
            if('{$rx.hasp_in_start_b}' != ""){
                hasp_in_bArr += '起点:{$rx.hasp_in_start_b}、{$rx.hasp_in_side_b},';
            }
            if('{$rx.hasp_in_start_b1}' != ""){
                hasp_in_bArr += '止点:{$rx.hasp_in_start_b1}、{$rx.hasp_in_side_b1},';
            }
            if('{$rx.hasp_in_other_b}' != ""){
                hasp_in_bArr += '其它：{$rx.hasp_in_other_b}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_b","CONTENT", hasp_in_bArr);

            var hasp_in_cArr = "";
            if('{$rx.hasp_in_len_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_len_c}，';
            }
            if('{$rx.hasp_in_type_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_type_c}，';
            }
            if('{$rx.hasp_in_tight_c}' != ""){
                hasp_in_cArr += '{$rx.hasp_in_tight_c}，';
            }
            if('{$rx.hasp_in_start_c}' != ""){
                hasp_in_cArr += '起点:{$rx.hasp_in_start_c}、{$rx.hasp_in_side_c},';
            }
            if('{$rx.hasp_in_start_c1}' != ""){
                hasp_in_cArr += '止点:{$rx.hasp_in_start_c1}、{$rx.hasp_in_side_c1},';
            }
            if('{$rx.hasp_in_other_c}' != ""){
                hasp_in_cArr += '其它：{$rx.hasp_in_other_c}，';
            }
            LODOP.SET_PRINT_STYLEA("hasp_in_c","CONTENT", hasp_in_cArr);
   //     }

        var cutline_outArr = "";
        if('{$cutline_out}' != ""){
            cutline_outArr += '{$cutline_out}，';
        }
        if('{$rx.cutline_out_other}' != ""){
            cutline_outArr += '其它：{$rx.cutline_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("cutline_out","CONTENT", cutline_outArr);

     //   if('{$rx.combo}' == "是") {
            var cutline_inArr = "";
            if('{$cutline_in}' != ""){
                cutline_inArr += '{$cutline_in}，';
     //       }
            if('{$rx.cutline_in_other}' != ""){
                cutline_inArr += '其它：{$rx.cutline_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("cutline_in","CONTENT", cutline_inArr);
        }

        var pelma_outArr = "";
        if('{$pelma_out}' != ""){
            pelma_outArr += '{$pelma_out}，';
        }
        if('{$rx.pelma_out_other}' != ""){
            pelma_outArr += '其它：{$rx.pelma_out_other}';
        }
        LODOP.SET_PRINT_STYLEA("pelma_out","CONTENT", pelma_outArr);

    //    if('{$rx.combo}' == "是") {
            var pelma_inArr = "";
            if('{$pelma_in}' != ""){
                pelma_inArr += '{$pelma_in}，';
            }
            if('{$rx.pelma_in_other}' != ""){
                pelma_inArr += '其它：{$rx.pelma_in_other}';
            }
            LODOP.SET_PRINT_STYLEA("pelma_in","CONTENT", pelma_inArr);
   //     }

        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$rx.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录处方TLSO
    function Order3Spn() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板
        //按类名赋值
        LODOP.SET_PRINT_STYLEA("workorder_id","CONTENT", '{$workorder.workorder_no}');

        LODOP.SET_PRINT_STYLEA("diagnosis","CONTENT", '{$rx.rt0}');
        LODOP.SET_PRINT_STYLEA("deformity","CONTENT", '{$rx.rt1}');

        var therapy_planArr = "";
        if('{$rx.rt2}' != ""){
            therapy_planArr += '{$rx.rt2}，';
        }
        if('{$rx.rt3}' != ""){
            therapy_planArr += '其它：{$rx.rt3}';
        }
        LODOP.SET_PRINT_STYLEA("therapy_plan","CONTENT", therapy_planArr);

        LODOP.SET_PRINT_STYLEA("spin_type","CONTENT", "{$rx.rt4}");

        var speical_inArr = "";
        if('{$rx.rt4}' != "CTLSO"){
            if('{$rx.rt5}' != ""){
                speical_inArr += '颈椎对线要求：{$rx.rt5}，';
            }
            if('{$rx.rt6}' != ""){
                speical_inArr += '{$rx.rt6}头箍，';
            }
            if('{$rx.rt7}' != ""){
                speical_inArr += '头箍材料：{$rx.rt7}，';
            }
        }
        if('{$rx.rt4}' != "TLSO"){
            if('{$rx.rt8}' != ""){
                speical_inArr += '类型：{$rx.rt8}，';
            }
            if('{$rx.rt9}' != ""){
                speical_inArr += '头箍材料：{$rx.rt9}，';
            }
        }
        LODOP.SET_PRINT_STYLEA("speical_in","CONTENT", speical_inArr);
        LODOP.SET_PRINT_STYLEA("sagittal_in","CONTENT", "{$rx.rt10}");
        LODOP.SET_PRINT_STYLEA("coronal_in","CONTENT", "{$rx.rt11}");
        LODOP.SET_PRINT_STYLEA("front_hei","CONTENT", "{$rx.rt12}");
        LODOP.SET_PRINT_STYLEA("bak_hei","CONTENT", "{$rx.rt13}");
        LODOP.SET_PRINT_STYLEA("left_hei","CONTENT", "{$rx.rt14}");
        LODOP.SET_PRINT_STYLEA("right_hei","CONTENT", "{$rx.rt15}");
        LODOP.SET_PRINT_STYLEA("front_bo","CONTENT", "{$rx.rt16}");
        LODOP.SET_PRINT_STYLEA("back_bo","CONTENT", "{$rx.rt17}");
        LODOP.SET_PRINT_STYLEA("left_bo","CONTENT", "{$rx.rt18}");
        LODOP.SET_PRINT_STYLEA("right_bo","CONTENT", "{$rx.rt19}");
        LODOP.SET_PRINT_STYLEA("pressure_in","CONTENT", "{$rx.rt20}");
        LODOP.SET_PRINT_STYLEA("free_in","CONTENT", "{$rx.rt21}");
        var mouldArr = "{$mould}。骨盆前凸调整：{$rx.rt23}";
        if('{$rx.rt24}' != ""){
            mouldArr += '（{$rx.rt24}°）';
        }
        LODOP.SET_PRINT_STYLEA("mould","CONTENT", mouldArr);

        LODOP.SET_PRINT_STYLEA("build_up","CONTENT", "{$rx.rt25}");
        LODOP.SET_PRINT_STYLEA("pressure_info","CONTENT", "{$rx.rt26}");
        LODOP.SET_PRINT_STYLEA("size_info","CONTENT", "{$rx.rt27}");
        LODOP.SET_PRINT_STYLEA("bounder_info","CONTENT", "{$rx.rt28}");
        var materialArr = "外壳：{$rx.rt29}（{$rx.rt30}），内衬：{$rx.rt31}，贴纸图案要求：{$rx.rt32}";
        if('{$rx.rt33}' != ""){
            materialArr += '，其他说明：{$rx.rt33}';
        }
        LODOP.SET_PRINT_STYLEA("material","CONTENT", materialArr);
        LODOP.SET_PRINT_STYLEA("jq_zt","CONTENT", "材料：{$rx.rt34}，可调高度：{$rx.rt35}，固定高度：{$rx.rt36}，固定位置：{$rx.rt37}，{$rx.rt38}枝条免压垫");
        LODOP.SET_PRINT_STYLEA("jh_zt","CONTENT", "材料：{$rx.rt39}，可调高度：{$rx.rt40}，固定高度：{$rx.rt41}，固定位置：{$rx.rt42}，{$rx.rt43}枝条免压垫");
        var jt_infoArr = "材料：{$rx.rt44}，前后倾角{$rx.rt45}";
        if('{$rx.rt46}' != ""){
            jt_infoArr += '：{$rx.rt46}°，';
        }
        LODOP.SET_PRINT_STYLEA("jt_info","CONTENT", jt_infoArr + "{$rx.rt47}颈托免压垫");
        var pilo_infoArr = "材料：{$rx.rt48}，前后倾角{$rx.rt49}";
        if('{$rx.rt50}' != ""){
            pilo_infoArr += '：{$rx.rt50}°，';
        }
        LODOP.SET_PRINT_STYLEA("pilo_info","CONTENT", pilo_infoArr + "{$rx.rt51}颈托免压垫");
        var pilo_infoArr = "材料：{$rx.rt48}，前后倾角{$rx.rt49}";
        if('{$rx.rt50}' != ""){
            pilo_infoArr += '：{$rx.rt50}°，';
        }
        LODOP.SET_PRINT_STYLEA("pilo_info","CONTENT", pilo_infoArr + "{$rx.rt51}颈托免压垫");
        LODOP.SET_PRINT_STYLEA("chest_zt","CONTENT", "{$rx.rt52}，材料：{$rx.rt53}，热塑材料：{$rx.rt54} {$rx.rt55}（{$rx.rt56}），枝条类型：{$rx.rt57}，枝条宽度：{$rx.rt58}，{$rx.rt59}枝条免压垫");
        LODOP.SET_PRINT_STYLEA("back_zt","CONTENT", "{$rx.rt60}，材料：{$rx.rt61}，热塑材料：{$rx.rt62} {$rx.rt63}（{$rx.rt64}），枝条类型：{$rx.rt65}，枝条宽度：{$rx.rt66}，{$rx.rt67}枝条免压垫，背托宽度：{$rx.rt68}，背托位置：{$rx.rt69}，{$rx.rt70}背托免压垫");
        LODOP.SET_PRINT_STYLEA("spin_trimline","CONTENT", "开口处{$rx.rt71}压片，材料：{$rx.rt72}，厚度：{$rx.rt73}，深度：{$rx.rt74}");
        var pad_infoArr = "";
        if('{$rx.rt75}' != ""){
            pad_infoArr += '1：{$rx.rt75}。';
        }
        if('{$rx.rt76}' != ""){
            pad_infoArr += ' 2：{$rx.rt76}。';
        }
        if('{$rx.rt77}' != ""){
            pad_infoArr += ' 3：{$rx.rt77}。';
        }
        LODOP.SET_PRINT_STYLEA("pad_info","CONTENT", pad_infoArr);
        LODOP.SET_PRINT_STYLEA("nylon_info","CONTENT", "材质：{$rx.rt78}，宽度：{$rx.rt79}，位置：{$rx.rt80}，返回式环：{$rx.rt81}，固定说明：{$rx.rt82}");
        var shoulder_strapArr = "{$rx.rt83}肩带";
        if('{$rx.rt83}' == "有"){
            shoulder_strapArr += '，材质：{$rx.rt84}，宽度：{$rx.rt85}，返回式环：{$rx.rt86}，固定说明：{$rx.rt87}';
        }
        LODOP.SET_PRINT_STYLEA("shoulder_strap","CONTENT", shoulder_strapArr);
        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$rx.note}');
        if("{$prescriber.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_prescriber","CONTENT","<img src='" + '{$prescriber.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    //批记录处方SCO
    function Order3Sco() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("note","CONTENT"," " + '{$rx.note}');

        if('{$rx.rt0}' != "") {
            LODOP.SET_PRINT_STYLEA("img_trimline", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/trimline" + '{$rx.rt0}' + ".jpg'>");
            if('{$rx.rt1}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt1}' + "-design.jpg'>");
            }
            if('{$rx.rt2}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt2}' + "-design.jpg'>");
            }
            if('{$rx.rt3}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt3}' + "-design.jpg'>");
            }
            if('{$rx.rt4}' != "") {
                LODOP.SET_PRINT_STYLEA("img_design", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/sco-" + '{$rx.rt0}' + '{$rx.rt4}' + "-design.jpg'>");
            }
        }

        LODOP.SET_PRINT_STYLEA("rt5","CONTENT", '{$rx.rt5}');
        LODOP.SET_PRINT_STYLEA("rt6","CONTENT", '{$rx.rt6}');
        LODOP.SET_PRINT_STYLEA("rt7","CONTENT", '{$rx.rt7}');
        LODOP.SET_PRINT_STYLEA("rt8","CONTENT", '{$rx.rt8}');
        LODOP.SET_PRINT_STYLEA("rt9","CONTENT", '{$rx.rt9}');
        LODOP.SET_PRINT_STYLEA("rt10","CONTENT", '{$rx.rt10}');
        LODOP.SET_PRINT_STYLEA("rt11","CONTENT", '{$rx.rt11}');
        LODOP.SET_PRINT_STYLEA("rt12","CONTENT", '{$rx.rt12}');
        LODOP.SET_PRINT_STYLEA("rt13","CONTENT", '{$rx.rt13}');
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT", '{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT", '{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT", '{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT", '{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT", '{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT", '{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT", '{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT", '{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("rt22","CONTENT", '{$rx.rt22}');
        LODOP.SET_PRINT_STYLEA("rt23","CONTENT", '{$rx.rt23}');
        LODOP.SET_PRINT_STYLEA("rt24","CONTENT", '{$rx.rt24}');
        LODOP.SET_PRINT_STYLEA("rt25","CONTENT", '{$rx.rt25}');
        LODOP.SET_PRINT_STYLEA("rt26_"+ '{$rx.rt26}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt27_"+ '{$rx.rt27}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt28","CONTENT", '{$rx.rt28}');
        LODOP.SET_PRINT_STYLEA("rt29_"+ '{$rx.rt29}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("rt30","CONTENT", '{$rx.rt30}');
        LODOP.SET_PRINT_STYLEA("rt31","CONTENT", '{$rx.rt31}');
        LODOP.SET_PRINT_STYLEA("rt32","CONTENT", '{$rx.rt32}');
        LODOP.SET_PRINT_STYLEA("rt33","CONTENT", '{$rx.rt33}');
        LODOP.SET_PRINT_STYLEA("rt34","CONTENT", '{$rx.rt34}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("design","CONTENT", "{$design}");

        if("{$prescriber.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_prescriber","CONTENT","<img src='" + '{$prescriber.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录处方KAFO
    function Order3Kafo() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("rt0","CONTENT",'[{$rx.rt0}] {$workorder.side}');
        LODOP.SET_PRINT_STYLEA("rt1","CONTENT",'{$rx.rt1}');
        LODOP.SET_PRINT_STYLEA("rt2","CONTENT",'{$rx.rt2}');
        LODOP.SET_PRINT_STYLEA("rt3","CONTENT",'{$rx.rt3}');
        LODOP.SET_PRINT_STYLEA("rt4","CONTENT",'{$rx.rt4}');
        LODOP.SET_PRINT_STYLEA("rt5","CONTENT",'{$rx.rt5}');
        var rt6789 = '{$rx.rt6}';
        if('{$rx.rt7}' != ""){
            rt6789 += '：{$rx.rt7}';
        }
        rt6789 += '。{$rx.rt8}';
        if('{$rx.rt9}' != ""){
            rt6789 += ' ：{$rx.rt9}';
        }
        LODOP.SET_PRINT_STYLEA("rt6789","CONTENT", rt6789);

        var rt10111213 = '{$rx.rt10}';
        if('{$rx.rt11}' != ""){
            rt10111213 += '：{$rx.rt11}';
        }
        rt10111213 += '。{$rx.rt12}';
        if('{$rx.rt13}' != ""){
            rt10111213 += ' ：{$rx.rt13}';
        }
        LODOP.SET_PRINT_STYLEA("rt10111213","CONTENT", rt10111213);
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT",'{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT",'{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT",'{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT",'{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT",'{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT",'{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT",'{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT",'{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

        if("{$prescriber.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_prescriber","CONTENT","<img src='" + '{$prescriber.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录处方FO
    function Order3Fo() {
        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT","95%");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order3.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("rt0","CONTENT",'[{$rx.rt0}] {$workorder.side}');
        LODOP.SET_PRINT_STYLEA("rt1","CONTENT",'{$rx.rt1}');
        LODOP.SET_PRINT_STYLEA("rt2","CONTENT",'{$rx.rt2}');
        LODOP.SET_PRINT_STYLEA("rt3","CONTENT",'{$rx.rt3}');
        LODOP.SET_PRINT_STYLEA("rt4","CONTENT",'{$rx.rt4}');
        LODOP.SET_PRINT_STYLEA("rt5","CONTENT",'{$rx.rt5}');
        var rt6789 = '{$rx.rt6}';
        if('{$rx.rt7}' != ""){
            rt6789 += '：{$rx.rt7}';
        }
        rt6789 += '。{$rx.rt8}';
        if('{$rx.rt9}' != ""){
            rt6789 += ' ：{$rx.rt9}';
        }
        LODOP.SET_PRINT_STYLEA("rt6789","CONTENT", rt6789);

        var rt10111213 = '{$rx.rt10}';
        if('{$rx.rt11}' != ""){
            rt10111213 += '：{$rx.rt11}';
        }
        rt10111213 += '。{$rx.rt12}';
        if('{$rx.rt13}' != ""){
            rt10111213 += ' ：{$rx.rt13}';
        }
        LODOP.SET_PRINT_STYLEA("rt10111213","CONTENT", rt10111213);
        LODOP.SET_PRINT_STYLEA("rt14","CONTENT",'{$rx.rt14}');
        LODOP.SET_PRINT_STYLEA("rt15","CONTENT",'{$rx.rt15}');
        LODOP.SET_PRINT_STYLEA("rt16","CONTENT",'{$rx.rt16}');
        LODOP.SET_PRINT_STYLEA("rt17","CONTENT",'{$rx.rt17}');
        LODOP.SET_PRINT_STYLEA("rt18","CONTENT",'{$rx.rt18}');
        LODOP.SET_PRINT_STYLEA("rt19","CONTENT",'{$rx.rt19}');
        LODOP.SET_PRINT_STYLEA("rt20","CONTENT",'{$rx.rt20}');
        LODOP.SET_PRINT_STYLEA("rt21","CONTENT",'{$rx.rt21}');
        LODOP.SET_PRINT_STYLEA("long0","CONTENT", "{$rx.long0}");
        LODOP.SET_PRINT_STYLEA("long1","CONTENT", "{$rx.long1}");
        LODOP.SET_PRINT_STYLEA("long2","CONTENT", "{$rx.long2}");
        LODOP.SET_PRINT_STYLEA("note","CONTENT", '{$rx.note}');

        if("{$prescriber.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_prescriber","CONTENT","<img src='" + '{$prescriber.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("prescriber","CONTENT",'{$prescriber.admin_name}');
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
//         LODOP.PREVIEW();
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录尺寸测量AFO
    function Order4() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("side","CONTENT",'{$examBasic.side}');

        LODOP.SET_PRINT_STYLEA("burden","CONTENT",'{$examMeasure.burden}');
        LODOP.SET_PRINT_STYLEA("shank_0","CONTENT",'{$examMeasure.shank_0}');
        LODOP.SET_PRINT_STYLEA("shank_1","CONTENT",'{$examMeasure.shank_1}');
        LODOP.SET_PRINT_STYLEA("shank_2","CONTENT",'{$examMeasure.shank_2}');
        LODOP.SET_PRINT_STYLEA("shank_3","CONTENT",'{$examMeasure.shank_3}');
        LODOP.SET_PRINT_STYLEA("shank_4","CONTENT",'{$examMeasure.shank_4}');
        LODOP.SET_PRINT_STYLEA("shank_5","CONTENT",'{$examMeasure.shank_5}');
        LODOP.SET_PRINT_STYLEA("shank_6","CONTENT",'{$examMeasure.shank_6}');
        LODOP.SET_PRINT_STYLEA("shank_7","CONTENT",'{$examMeasure.shank_7}');
        LODOP.SET_PRINT_STYLEA("shank_8","CONTENT",'{$examMeasure.shank_8}');
        LODOP.SET_PRINT_STYLEA("shank_9","CONTENT",'{$examMeasure.shank_9}');
        LODOP.SET_PRINT_STYLEA("shank_10","CONTENT",'{$examMeasure.shank_10}');
        LODOP.SET_PRINT_STYLEA("shank_11","CONTENT",'{$examMeasure.shank_11}');
        LODOP.SET_PRINT_STYLEA("shank_12","CONTENT",'{$examMeasure.shank_12}');
        LODOP.SET_PRINT_STYLEA("shank_13","CONTENT",'{$examMeasure.shank_13}');
        LODOP.SET_PRINT_STYLEA("shank_14","CONTENT",'{$examMeasure.shank_14}');
        LODOP.SET_PRINT_STYLEA("shank_15","CONTENT",'{$examMeasure.shank_15}');
//        LODOP.SET_PRINT_STYLEA("shank_16","CONTENT",'{$examMeasure.shank_16}');
//        LODOP.SET_PRINT_STYLEA("shank_17","CONTENT",'{$examMeasure.shank_17}°');
//        LODOP.SET_PRINT_STYLEA("shank_18","CONTENT",'{$examMeasure.shank_18}°');
//        LODOP.SET_PRINT_STYLEA("shank_19","CONTENT",'{$examMeasure.shank_19}°');
//        LODOP.SET_PRINT_STYLEA("shank_20","CONTENT",'{$examMeasure.shank_20}°');


        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录尺寸测量TLSO
    function Order4Spn() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');
        LODOP.SET_PRINT_STYLEA("spine0","CONTENT",'{$examMeasure.spine0}');
        LODOP.SET_PRINT_STYLEA("spine1","CONTENT",'{$examMeasure.spine1}');
        LODOP.SET_PRINT_STYLEA("spine2","CONTENT",'{$examMeasure.spine2}');
        LODOP.SET_PRINT_STYLEA("spine3","CONTENT",'{$examMeasure.spine3}');
        LODOP.SET_PRINT_STYLEA("spine4","CONTENT",'{$examMeasure.spine4}');
        LODOP.SET_PRINT_STYLEA("spine5","CONTENT",'{$examMeasure.spine5}');
        LODOP.SET_PRINT_STYLEA("spine6","CONTENT",'{$examMeasure.spine6}');
        LODOP.SET_PRINT_STYLEA("spine7","CONTENT",'{$examMeasure.spine7}');
        LODOP.SET_PRINT_STYLEA("spine8","CONTENT",'{$examMeasure.spine8}');
        LODOP.SET_PRINT_STYLEA("spine9","CONTENT",'{$examMeasure.spine9}');
        LODOP.SET_PRINT_STYLEA("spine10","CONTENT",'{$examMeasure.spine10}');
        LODOP.SET_PRINT_STYLEA("spine11","CONTENT",'{$examMeasure.spine11}');
        LODOP.SET_PRINT_STYLEA("spine12","CONTENT",'{$examMeasure.spine12}');
        LODOP.SET_PRINT_STYLEA("spine13","CONTENT",'{$examMeasure.spine13}');
        LODOP.SET_PRINT_STYLEA("spine14","CONTENT",'{$examMeasure.spine14}');
        LODOP.SET_PRINT_STYLEA("spine15","CONTENT",'{$examMeasure.spine15}');
        LODOP.SET_PRINT_STYLEA("spine16","CONTENT",'{$examMeasure.spine16}');
        LODOP.SET_PRINT_STYLEA("spine17","CONTENT",'{$examMeasure.spine17}');
        LODOP.SET_PRINT_STYLEA("spine18","CONTENT",'{$examMeasure.spine18}');
        LODOP.SET_PRINT_STYLEA("spine19","CONTENT",'{$examMeasure.spine19}');
        LODOP.SET_PRINT_STYLEA("spine20","CONTENT",'{$examMeasure.spine20}');
        var chest1Arr = '{$examMeasure.chest1}'.split(",");
        for(var i=0;i<chest1Arr.length;i++){
            var name = "chest1_"+ chest1Arr[i];
            if(chest1Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest2Arr = '{$examMeasure.chest2}'.split(",");
        for(var i=0;i<chest2Arr.length;i++){
            var name = "chest2_"+ chest2Arr[i];
            if(chest2Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest3Arr = '{$examMeasure.chest3}'.split(",");
        for(var i=0;i<chest3Arr.length;i++){
            var name = "chest3_"+ chest3Arr[i];
            if(chest3Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        var chest4Arr = '{$examMeasure.chest4}'.split(",");
        for(var i=0;i<chest4Arr.length;i++){
            var name = "chest4_"+ chest4Arr[i];
            if(chest4Arr[i] != ""){
                LODOP.SET_PRINT_STYLEA(name,"CONTENT","√");
            }
        }
        if('{$workorder.version}' == '1') {
            LODOP.SET_PRINT_STYLEA("abdomen","CONTENT"," " + '{$examMeasure.abdomen}');
            LODOP.SET_PRINT_STYLEA("oxter","CONTENT"," " + '{$examMeasure.oxter}');
            LODOP.SET_PRINT_STYLEA("xiphoid","CONTENT"," " + '{$examMeasure.xiphoid}');
            LODOP.SET_PRINT_STYLEA("iliopsoas","CONTENT"," " + '{$examMeasure.iliopsoas}');
            LODOP.SET_PRINT_STYLEA("anterior","CONTENT"," " + '{$examMeasure.anterior}');
            LODOP.SET_PRINT_STYLEA("trochanter","CONTENT"," " + '{$examMeasure.trochanter}');
            LODOP.SET_PRINT_STYLEA("vertex","CONTENT"," " + '{$examMeasure.vertex}');
            LODOP.SET_PRINT_STYLEA("sit_height","CONTENT"," " + '{$examMeasure.sit_height}');
            LODOP.SET_PRINT_STYLEA("stand_height","CONTENT"," " + '{$examMeasure.stand_height}');
            LODOP.SET_PRINT_STYLEA("cobb","CONTENT"," " + '{$examMeasure.cobb}');
            if('{$examMeasure.pelvic_}' == 0){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左高右低');
            }
            if('{$examMeasure.pelvic_}' == 1){
                LODOP.SET_PRINT_STYLEA("pelvic","CONTENT",' 左低右高');
            }
            if('{$examMeasure.shoulder}' == 0){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左高右低');
            }
            if('{$examMeasure.shoulder}' == 1){
                LODOP.SET_PRINT_STYLEA("shoulder","CONTENT",' 左低右高');
            }
            LODOP.SET_PRINT_STYLEA("rotate_"+ '{$examMeasure.rotate}',"CONTENT","√");

        }
        if('{$workorder.version}' == '2') {
            LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录尺寸测量SCO
    function Order4Sco() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板
        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examMeasure.update_time}');
        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');
        LODOP.SET_PRINT_STYLEA("em0","CONTENT",'{$examMeasure.em0}');
        LODOP.SET_PRINT_STYLEA("em1","CONTENT",'{$examMeasure.em1}');
        LODOP.SET_PRINT_STYLEA("em2","CONTENT",'{$examMeasure.em2}');
        LODOP.SET_PRINT_STYLEA("em3","CONTENT",'{$examMeasure.em3}');
        LODOP.SET_PRINT_STYLEA("em4","CONTENT",'{$examMeasure.em4}');
        LODOP.SET_PRINT_STYLEA("em5","CONTENT",'{$examMeasure.em5}');
        LODOP.SET_PRINT_STYLEA("em6","CONTENT",'{$examMeasure.em6}');
        LODOP.SET_PRINT_STYLEA("em7","CONTENT",'{$examMeasure.em7}');
        LODOP.SET_PRINT_STYLEA("em8","CONTENT",'{$examMeasure.em8}');
        LODOP.SET_PRINT_STYLEA("em9","CONTENT",'{$examMeasure.em9}');
        LODOP.SET_PRINT_STYLEA("em10","CONTENT",'{$examMeasure.em10}');
        LODOP.SET_PRINT_STYLEA("em11","CONTENT",'{$examMeasure.em11}');
        LODOP.SET_PRINT_STYLEA("em12","CONTENT",'{$examMeasure.em12}');
        LODOP.SET_PRINT_STYLEA("em13","CONTENT",'{$examMeasure.em13}');
        LODOP.SET_PRINT_STYLEA("em14","CONTENT",'{$examMeasure.em14}');
        LODOP.SET_PRINT_STYLEA("em15","CONTENT",'{$examMeasure.em15}');
        LODOP.SET_PRINT_STYLEA("em16","CONTENT",'{$examMeasure.em16}');
        LODOP.SET_PRINT_STYLEA("em17","CONTENT",'{$examMeasure.em17}');
        LODOP.SET_PRINT_STYLEA("em18","CONTENT",'{$examMeasure.em18}');
        LODOP.SET_PRINT_STYLEA("em19","CONTENT",'{$examMeasure.em19}');
        LODOP.SET_PRINT_STYLEA("em20","CONTENT",'{$examMeasure.em20}');
        LODOP.SET_PRINT_STYLEA("em21","CONTENT",'{$examMeasure.em21}');
        LODOP.SET_PRINT_STYLEA("em22","CONTENT",'{$examMeasure.em22}');
        LODOP.SET_PRINT_STYLEA("other", "CONTENT", '{$examMeasure.other}');
        LODOP.SET_PRINT_STYLEA("note", "CONTENT", '{$examMeasure.note}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录尺寸测量Kafo
    function Order4Kafo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("pose", "CONTENT", '{$examMeasure.pose}');

        if(typeof($examMeasure) != 'undefined'){
            var listEmArr=<?php echo json_encode($examMeasure);?>;
            var listEm=eval(listEmArr);

            for(var i=0;i<=24;i++){
                var name = "em" + i;
                LODOP.SET_PRINT_STYLEA(name,"CONTENT",listEm[name]);
                LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
            }
        }

        if('{$workorder.workorder_type}' == '6'){
            LODOP.SET_PRINT_STYLEA("em_image", "CONTENT", "<img src='http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/exam_KO.jpg'>");
        }else{
            LODOP.SET_PRINT_STYLEA("white","PreviewOnly",2);
        }

        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    //批记录尺寸测量Fo
    function Order4Fo() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order4.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("em0","CONTENT",'{$examMeasure.em0}');
        LODOP.SET_PRINT_STYLEA("em1","CONTENT",'{$examMeasure.em1}');
        LODOP.SET_PRINT_STYLEA("em2","CONTENT",'{$examMeasure.em2}');

        LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$examBasic.update_time}');

        if("{$examinator.signimgurl}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign_examinator","CONTENT","<img src='" + '{$examinator.signimgurl}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("examinator","CONTENT",'{$examinator.admin_name}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function Order5() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order5.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("p1_"+ '{$process.p1}',"CONTENT","√");
        LODOP.SET_PRINT_STYLEA("p2","CONTENT",'{$process.p2}');
        LODOP.SET_PRINT_STYLEA("p3","CONTENT",'{$process.p3}');
        LODOP.SET_PRINT_STYLEA("p4","CONTENT",'{$process.p4}');
        LODOP.SET_PRINT_STYLEA("p5","CONTENT",'{$process.p5}');
        LODOP.SET_PRINT_STYLEA("p6","CONTENT",'{$process.p6}');
        LODOP.SET_PRINT_STYLEA("p7","CONTENT",'{$process.p7}');
        LODOP.SET_PRINT_STYLEA("p8","CONTENT",'{$process.p8}');
        if("{$process.p9}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign9","CONTENT","<img src='" + '{$process.p9}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p9","CONTENT",'{$process.p9}');
        LODOP.SET_PRINT_STYLEA("p10","CONTENT",'{$process.p10}');
        LODOP.SET_PRINT_STYLEA("p11","CONTENT",'{$process.p11}');
        LODOP.SET_PRINT_STYLEA("p12","CONTENT",'{$process.p12}');
        LODOP.SET_PRINT_STYLEA("p13","CONTENT",'{$process.p13}');
        LODOP.SET_PRINT_STYLEA("p14","CONTENT",'{$process.p14}');
        LODOP.SET_PRINT_STYLEA("p15","CONTENT",'{$process.p15}');
        LODOP.SET_PRINT_STYLEA("p16","CONTENT",'{$process.p16}');
        LODOP.SET_PRINT_STYLEA("p17","CONTENT",'{$process.p17}');
        LODOP.SET_PRINT_STYLEA("p18","CONTENT",'{$process.p18}');
        LODOP.SET_PRINT_STYLEA("p19","CONTENT",'{$process.p19}');
        LODOP.SET_PRINT_STYLEA("p20","CONTENT",'{$process.p20}');
        LODOP.SET_PRINT_STYLEA("p21","CONTENT",'{$process.p21}');
        LODOP.SET_PRINT_STYLEA("p22","CONTENT",'{$process.p22}');
        LODOP.SET_PRINT_STYLEA("p23","CONTENT",'{$process.p23}');
        LODOP.SET_PRINT_STYLEA("p24","CONTENT",'{$process.p24}');
        LODOP.SET_PRINT_STYLEA("p25","CONTENT",'{$process.p25}');
        LODOP.SET_PRINT_STYLEA("p26","CONTENT",'{$process.p26}');
        if('{$workorder.review_status}' == '1') {
            LODOP.SET_PRINT_STYLEA("p27", "CONTENT", '{$process.p27}');
            LODOP.SET_PRINT_STYLEA("sign28","CONTENT","<img src='" + '{$reviewer.signimgurl}' +"'>");
        }
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function Order6() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order6.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("p29","CONTENT",'{$process.p29}');
        LODOP.SET_PRINT_STYLEA("p30","CONTENT",'{$process.p30}');
        LODOP.SET_PRINT_STYLEA("p31","CONTENT",'{$process.p31}');
        LODOP.SET_PRINT_STYLEA("p32","CONTENT",'{$process.p32}');
        LODOP.SET_PRINT_STYLEA("p33","CONTENT",'{$process.p33}');
        LODOP.SET_PRINT_STYLEA("p34","CONTENT",'{$process.p34}');
        if("{$process.p35}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign35","CONTENT","<img src='" + '{$process.p35}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p35","CONTENT",'{$process.p35}');
        LODOP.SET_PRINT_STYLEA("p36","CONTENT",'{$process.p36}');
        LODOP.SET_PRINT_STYLEA("p37","CONTENT",'{$process.p37}');
        LODOP.SET_PRINT_STYLEA("p38","CONTENT",'{$process.p38}');
        LODOP.SET_PRINT_STYLEA("p39","CONTENT",'{$process.p39}');
        LODOP.SET_PRINT_STYLEA("p40","CONTENT",'{$process.p40}');
        LODOP.SET_PRINT_STYLEA("p41","CONTENT",'{$process.p41}');
        LODOP.SET_PRINT_STYLEA("p42","CONTENT",'{$process.p42}');
        LODOP.SET_PRINT_STYLEA("p43","CONTENT",'{$process.p43}');
        LODOP.SET_PRINT_STYLEA("p44","CONTENT",'{$process.p44}');
        LODOP.SET_PRINT_STYLEA("p45","CONTENT",'{$process.p45}');
        LODOP.SET_PRINT_STYLEA("p46","CONTENT",'{$process.p46}');
        LODOP.SET_PRINT_STYLEA("p47","CONTENT",'{$process.p47}');
        LODOP.SET_PRINT_STYLEA("p48","CONTENT",'{$process.p48}');
        LODOP.SET_PRINT_STYLEA("p49","CONTENT",'{$process.p49}');
        LODOP.SET_PRINT_STYLEA("p50","CONTENT",'{$process.p50}');
        LODOP.SET_PRINT_STYLEA("p51","CONTENT",'{$process.p51}');
        LODOP.SET_PRINT_STYLEA("p52","CONTENT",'{$process.p52}');
        LODOP.SET_PRINT_STYLEA("p53","CONTENT",'{$process.p53}');
        LODOP.SET_PRINT_STYLEA("p54","CONTENT",'{$process.p54}');
        if('{$workorder.review_status}' == '1') {
            LODOP.SET_PRINT_STYLEA("p60", "CONTENT", '{$process.p60}');
            LODOP.SET_PRINT_STYLEA("sign61","CONTENT","<img src='" + '{$reviewer.signimgurl}' +"'>");
        }
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function Order7() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order7.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("p55","CONTENT",'{$process.p55}');
        LODOP.SET_PRINT_STYLEA("p56","CONTENT",'{$process.p56}');
        LODOP.SET_PRINT_STYLEA("p57","CONTENT",'{$process.p57}');
        LODOP.SET_PRINT_STYLEA("p58","CONTENT",'{$process.p58}');
        LODOP.SET_PRINT_STYLEA("p62","CONTENT",'{$process.p62}');
        LODOP.SET_PRINT_STYLEA("p63","CONTENT",'{$process.p63}');
        LODOP.SET_PRINT_STYLEA("p64","CONTENT",'{$process.p64}');
        LODOP.SET_PRINT_STYLEA("p65","CONTENT",'{$process.p65}');
        LODOP.SET_PRINT_STYLEA("p66","CONTENT",'{$process.p66}');
        LODOP.SET_PRINT_STYLEA("p67","CONTENT",'{$process.p67}');
        LODOP.SET_PRINT_STYLEA("p68","CONTENT",'{$process.p68}');
        LODOP.SET_PRINT_STYLEA("p69","CONTENT",'{$process.p69}');
        LODOP.SET_PRINT_STYLEA("p70","CONTENT",'{$process.p70}');
        LODOP.SET_PRINT_STYLEA("p71","CONTENT",'{$process.p71}');
        LODOP.SET_PRINT_STYLEA("p72","CONTENT",'{$process.p72}');
        LODOP.SET_PRINT_STYLEA("p73","CONTENT",'{$process.p73}');
        LODOP.SET_PRINT_STYLEA("p74","CONTENT",'{$process.p74}');
        LODOP.SET_PRINT_STYLEA("p75","CONTENT",'{$process.p75}');
        LODOP.SET_PRINT_STYLEA("p76","CONTENT",'{$process.p76}');
        LODOP.SET_PRINT_STYLEA("p77","CONTENT",'{$process.p77}');
        LODOP.SET_PRINT_STYLEA("p78","CONTENT",'{$process.p78}');
        LODOP.SET_PRINT_STYLEA("p79","CONTENT",'{$process.p79}');
        LODOP.SET_PRINT_STYLEA("p80","CONTENT",'{$process.p80}');
        LODOP.SET_PRINT_STYLEA("p81","CONTENT",'{$process.p81}');
        LODOP.SET_PRINT_STYLEA("p82","CONTENT",'{$process.p82}');
        LODOP.SET_PRINT_STYLEA("p83","CONTENT",'{$process.p83}');
        LODOP.SET_PRINT_STYLEA("p84","CONTENT",'{$process.p84}');
        if("{$process.p85}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign85","CONTENT","<img src='" + '{$process.p85}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p85","CONTENT",'{$process.p85}');
        LODOP.SET_PRINT_STYLEA("p86","CONTENT",'{$process.p86}');
        LODOP.SET_PRINT_STYLEA("p87","CONTENT",'{$process.p87}');
        LODOP.SET_PRINT_STYLEA("p88","CONTENT",'{$process.p88}');
        LODOP.SET_PRINT_STYLEA("p89","CONTENT",'{$process.p89}');
        LODOP.SET_PRINT_STYLEA("p90","CONTENT",'{$process.p90}');
        LODOP.SET_PRINT_STYLEA("p91","CONTENT",'{$process.p91}');
        if('{$workorder.review_status}' == '1') {
            LODOP.SET_PRINT_STYLEA("p92", "CONTENT", '{$process.p92}');
            LODOP.SET_PRINT_STYLEA("sign93","CONTENT","<img src='" + '{$reviewer.signimgurl}' +"'>");
        }
        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function Order8() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order8.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("p94","CONTENT",'{$process.p94}');
        LODOP.SET_PRINT_STYLEA("p95","CONTENT",'{$process.p95}');
        LODOP.SET_PRINT_STYLEA("p96","CONTENT",'{$process.p96}');
        LODOP.SET_PRINT_STYLEA("p97","CONTENT",'{$process.p97}');
        LODOP.SET_PRINT_STYLEA("p98","CONTENT",'{$process.p98}');
        LODOP.SET_PRINT_STYLEA("p99","CONTENT",'{$process.p99}');
        LODOP.SET_PRINT_STYLEA("p100","CONTENT",'{$process.p100}');
        LODOP.SET_PRINT_STYLEA("p101","CONTENT",'{$process.p101}');
        LODOP.SET_PRINT_STYLEA("p102","CONTENT",'{$process.p102}');
        if("{$process.p103}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign103","CONTENT","<img src='" + '{$process.p103}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p103","CONTENT",'{$process.p103}');
        LODOP.SET_PRINT_STYLEA("p104","CONTENT",'{$process.p104}');
        LODOP.SET_PRINT_STYLEA("p105","CONTENT",'{$process.p105}');
        LODOP.SET_PRINT_STYLEA("p106","CONTENT",'{$process.p106}');
        LODOP.SET_PRINT_STYLEA("p107","CONTENT",'{$process.p107}');
        if('{$workorder.review_status}' == '1') {
            LODOP.SET_PRINT_STYLEA("p108", "CONTENT", '{$process.p108}');
            LODOP.SET_PRINT_STYLEA("sign109","CONTENT","<img src='" + '{$reviewer.signimgurl}' +"'>");
        }
        LODOP.SET_PRINT_STYLEA("p110","CONTENT",'{$process.p110}');
        LODOP.SET_PRINT_STYLEA("p111","CONTENT",'{$process.p111}');
        LODOP.SET_PRINT_STYLEA("p112","CONTENT",'{$process.p112}');
        if("{$process.p113}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign113","CONTENT","<img src='" + '{$process.p113}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p113","CONTENT",'{$process.p113}');
        LODOP.SET_PRINT_STYLEA("p114","CONTENT",'{$process.p114}');
        LODOP.SET_PRINT_STYLEA("p115","CONTENT",'{$process.p115}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
    function Order9() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order9.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("p116","CONTENT",'{$process.p116}');
        LODOP.SET_PRINT_STYLEA("p117","CONTENT",'{$process.p117}');
        if("{$process.p118}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign118","CONTENT","<img src='" + '{$process.p118}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p118","CONTENT",'{$process.p118}');
        LODOP.SET_PRINT_STYLEA("p119","CONTENT",'{$process.p119}');
        LODOP.SET_PRINT_STYLEA("p120","CONTENT",'{$process.p120}');
        LODOP.SET_PRINT_STYLEA("p121","CONTENT",'{$process.p121}');
        if("{$process.p122}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign122","CONTENT","<img src='" + '{$process.p122}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p122","CONTENT",'{$process.p122}');
        LODOP.SET_PRINT_STYLEA("p123","CONTENT",'{$process.p123}');
        LODOP.SET_PRINT_STYLEA("p124","CONTENT",'{$process.p124}');
        LODOP.SET_PRINT_STYLEA("p125","CONTENT",'{$process.p125}');
        LODOP.SET_PRINT_STYLEA("p126","CONTENT",'{$process.p126}');
        if("{$process.p127}".substr(0, 4) == "http")
            LODOP.SET_PRINT_STYLEA("sign127","CONTENT","<img src='" + '{$process.p127}' +"'>");
        else
            LODOP.SET_PRINT_STYLEA("p127","CONTENT",'{$process.p127}');

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function Order0() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$order0.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("a1","CONTENT",'{$patientInfo.patient_name}');
        LODOP.SET_PRINT_STYLEA("a3","CONTENT",'{$workorder.batch_no}');
        LODOP.SET_PRINT_STYLEA("a4","CONTENT",'{$workorder.storage_time}');
        if('{$workorder.audit_status}' == '1'){
            if("{$auditor.signimgurl}".substr(0, 4) == 'http'){
                LODOP.SET_PRINT_STYLEA("sign5","CONTENT","<img src='" + '{$auditor.signimgurl}' +"'>");
            }
            else{
                LODOP.SET_PRINT_STYLEA("a5","CONTENT",'{$auditor.admin_name}');
            }
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function Audit0() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$audit0.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("audit_no","CONTENT",'{$audit.audit_no}');
        LODOP.SET_PRINT_STYLEA("batch_name","CONTENT",'{$audit.batch_name}');
        LODOP.SET_PRINT_STYLEA("customized_product_name","CONTENT",'{$customized_product_name}');
        LODOP.SET_PRINT_STYLEA("batch_no","CONTENT",'{$audit.batch_no}');
        LODOP.SET_PRINT_STYLEA("mount","CONTENT",'{$audit.mount}');
        LODOP.SET_PRINT_STYLEA("report_date","CONTENT",'{$audit.report_date}');
        LODOP.SET_PRINT_STYLEA("audit_date","CONTENT",'{$audit.audit_date}');
        LODOP.SET_PRINT_STYLEA("conclusion","CONTENT",'{$audit.conclusion}');
        if('{$workorder.audit_status}' == '1'){
            LODOP.SET_PRINT_STYLEA("sign_reviewer","CONTENT","<img src='" + 'http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/liuguangzong.png' +"'>");
            if("{$auditor.signimgurl}".substr(0, 4) == 'http'){
                LODOP.SET_PRINT_STYLEA("sign_auditor","CONTENT","<img src='" + '{$auditor.signimgurl}' +"'>");
            }
            else{
                LODOP.SET_PRINT_STYLEA("auditor","CONTENT",'{$auditor.admin_name}');
            }
            LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$audit.audit_date}');
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function Audit1() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$audit1.template_content}'); //装载模板

        if(typeof($audit) != 'undefined'){
            var listArr=<?php echo json_encode($audit);?>;
            var list=eval(listArr);

            for(var i=0;i<24;i++){
                var name = "r" + i;
                LODOP.SET_PRINT_STYLEA(name,"CONTENT",list[name]);
                LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
            }
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };

    function Audit2() {

        LODOP=getLodop();
        LODOP.SET_PRINT_PAGESIZE(1, 0, 0,"A4");
        LODOP.ADD_PRINT_DATA("ProgramData",'{$audit2.template_content}'); //装载模板

        LODOP.SET_PRINT_STYLEA("audit_date","CONTENT",'{$audit.audit_date}');
        if('{$workorder.audit_status}' == '1'){
            LODOP.SET_PRINT_STYLEA("sign_reviewer","CONTENT","<img src='" + 'http://xwk-file.oss-cn-qingdao.aliyuncs.com/Home/liuguangzong.png' +"'>");
            if("{$auditor.signimgurl}".substr(0, 4) == 'http'){
                LODOP.SET_PRINT_STYLEA("sign_auditor","CONTENT","<img src='" + '{$auditor.signimgurl}' +"'>");
            }
            else{
                LODOP.SET_PRINT_STYLEA("auditor","CONTENT",'{$auditor.admin_name}');
            }
            LODOP.SET_PRINT_STYLEA("update_time","CONTENT",'{$audit.audit_date}');
        }

        if(typeof($audit) != 'undefined'){
            var listArr=<?php echo json_encode($audit);?>;
            var list=eval(listArr);

            for(var i=24;i<=64;i++){
                var name = "r" + i;
                LODOP.SET_PRINT_STYLEA(name,"CONTENT",list[name]);
                LODOP.SET_PRINT_STYLEA(name,"Alignment",2);
            }
        }

        LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
    };
</script>
</body>
</html>